Commit Graph

9836 Commits

Author SHA1 Message Date
Yao Wei Tjong 姚伟忠
53b4afcab6 Fix TOC for generated LuaScript API documentation page. 2015-08-22 00:14:15 +08:00
urho3d-travis-ci
0bbf66f40f Travis CI: API documentation update at 2015-08-21 15:51:57 UTC.
[ci package]

Commit: b1e1ab47c3

Message: Fix Lua version of crowd simulation demo due to VariantMap API changes.
2015-08-21 15:51:57 +00:00
Yao Wei Tjong 姚伟忠
b1e1ab47c3 Fix Lua version of crowd simulation demo due to VariantMap API changes. 2015-08-21 23:32:37 +08:00
Yao Wei Tjong 姚伟忠
a0125a19c1 Move the pieces around for code reuse opportunity. 2015-08-21 23:32:37 +08:00
Yao Wei Tjong 姚伟忠
937b0bcbc6 Add exposed tolua functions into documentation page. 2015-08-21 23:32:36 +08:00
Yao Wei Tjong 姚伟忠
35f3bb0a4d Store Urho3D context directly inside Lua state global table.
Remove static Lua state to context mapping. Expose the context as global property.
Prevent potential Lua VM crash when trying to get event sender or handler outside of event handling.
2015-08-21 23:32:36 +08:00
Lasse Öörni
e7b492b307 Fix integer overflow in the Random(int) functions when the range is large. 2015-08-21 17:29:51 +03:00
Lasse Öörni
42fcc37acd Merge remote-tracking branch 'silverkorn/master' 2015-08-21 13:19:12 +03:00
urho3d-travis-ci
9a23f5f172 Travis CI: API documentation update at 2015-08-21 09:50:38 UTC.
[ci package]

Commit: f0b3c8b805

Message: Allow interchangeable numeric value in Variant GetXXX(), e.g. GetFloat() succeeds when it's actually an int. Comparison still requires type and value to match exactly. Closes #851.
2015-08-21 09:50:38 +00:00
Lasse Öörni
f0b3c8b805 Allow interchangeable numeric value in Variant GetXXX(), e.g. GetFloat() succeeds when it's actually an int. Comparison still requires type and value to match exactly. Closes #851. 2015-08-21 11:59:13 +03:00
Lasse Öörni
75b1b53416 Re-fix AngelScript API. JSONArray & JSONObject are not registered into AngelScript, so they cannot be mentioned in any bindings. 2015-08-21 11:42:35 +03:00
aster2013
cd71104e90 Merge branch 'master' of https://github.com/urho3d/Urho3D
Conflicts:
	Source/Urho3D/Script/ResourceAPI.cpp
2015-08-21 15:42:24 +08:00
aster2013
57551ca717 Remove At function in JSONValue, add SetXXX functions for LuaAPI. 2015-08-21 15:36:20 +08:00
urho3d-travis-ci
2486d36a60 Travis CI: API documentation update at 2015-08-21 07:04:33 UTC.
[ci package]

Commit: f7dd38d70e

Message: Remove M_INFINITY default value from PhysicsWorld AngelScript bindings, which is illegal to Bullet.
2015-08-21 07:04:33 +00:00
Lasse Öörni
f7dd38d70e Remove M_INFINITY default value from PhysicsWorld AngelScript bindings, which is illegal to Bullet. 2015-08-21 09:56:55 +03:00
Lasse Öörni
83c889ab48 Remove invalid JSONValue AngelScript bindings, which prevent AngelScript applications from starting. Fixes #852. 2015-08-21 09:56:15 +03:00
aster2013
ddc19bf278 Fix name error, add iterator for JSON object type. 2015-08-21 10:56:19 +08:00
Silverkorn
792531552f Fix missing escape characters for the Zerobrane Studio API. 2015-08-20 22:11:57 -04:00
aster2013
d3247fccf5 Minor fixed. 2015-08-21 00:30:49 +08:00
aster2013
c0014f40bb Accroding the discuss on forum by Lasse and other users and refer to the json code in Lasse's Turso3D engine, rewrite JSONFile and JSONValue class, make it looks like JSON. 2015-08-21 00:12:42 +08:00
Lasse Öörni
999ccb9bc1 Added contributor credit. 2015-08-20 11:38:58 +03:00
Lasse Öörni
7b312275a2 Merge remote-tracking branch 'bjorn/fix-objecttype' 2015-08-20 10:59:45 +03:00
Lasse Öörni
b456f369c5 Merge remote-tracking branch 'bjorn/fix-typo' 2015-08-20 10:59:39 +03:00
Yao Wei Tjong 姚伟忠
f7a30b8306 Add back the logic to first check if keybinding length is correct. 2015-08-20 07:51:17 +08:00
Thorbjørn Lindeijer
094d146c3c TmxFile2D: Fix determination of object type
TmxObjectGroup2D::Load was using the presence of the "width" and
"height" attributes for deciding whether an object was a rectangle,
ellipse or something else. This is wrong, and the approach breaks for
maps saved in more recent versions of Tiled. This is because the width
and height are only saved when they differ from the default (0), and
because the width and height are now also used to store the size of tile
objects.

So for maps saved with Tiled >= 0.12, this change:

* Fixes identification of rectangle and ellipse objects with 0 width and
  height (which was leading to the entire map failing to load).
* Fixes identification of tile objects.
2015-08-19 21:45:22 +02:00
Thorbjørn Lindeijer
64afa327de Fix a typo: worlsScaleX -> worldScaleX 2015-08-19 21:26:47 +02:00
Yao Wei Tjong 姚伟忠
ded284e6c3 Fix a copy pasta error.
Related to commit 530950ed7c.
2015-08-20 00:41:05 +08:00
Lasse Öörni
7499e19998 Prevent creation of multiple value childs to XMLElement, when SetValue() is called several times. 2015-08-19 18:51:21 +03:00
Yao Wei Tjong 姚伟忠
530950ed7c Store keymap bindings for hat using an IntRect instead of String.
Fix #847.
2015-08-19 23:40:37 +08:00
Lasse Öörni
0e3c778f34 Fix using null handle when updating temporary component state. Closes #848. 2015-08-19 18:33:22 +03:00
Lasse Öörni
d4696f92a0 Make sure adding & deleting RigidBody2D fixtures doesn't reset the mass when not wanted (useFixtureMass = false). Fixed some mistaken if statement logic, and improved some RigidBody2D comments. Note that when useFixtureMass = false, you must set nonzero inertia to get rotation. Closes #844. 2015-08-19 18:19:31 +03:00
Yao Wei Tjong 姚伟忠
55635bdf3a Replace friend func with explicit template specialization for Get().
Credit to Aster Jian.
2015-08-19 22:11:27 +08:00
Lasse Öörni
44acf54118 Make sure the lowest bone influences are dropped if too many. 2015-08-18 21:58:24 +03:00
Lasse Öörni
b631612ff7 Force normalization of vertex weights in AssetImporter. More than 4 weights is no longer a fatal error, instead any more than that are dropped and a warning is logged. 2015-08-18 19:27:25 +03:00
Yao Wei Tjong 姚伟忠
102e8862bd Avoid repetition by accessing Variant::value directly via friend func. 2015-08-19 00:13:51 +08:00
urho3d-travis-ci
5c4562ba67 Travis CI: API documentation update at 2015-08-18 09:26:22 UTC.
[ci package]

Commit: b202aa6ee7

Message: Minor typo correction on Lua scripting documentation page.
2015-08-18 09:26:22 +00:00
Yao Wei Tjong 姚伟忠
b202aa6ee7 Minor typo correction on Lua scripting documentation page. 2015-08-18 17:12:37 +08:00
Yao Wei Tjong 姚伟忠
4c7f8664b6 Further improve Lua binding for Variant and VariantMap classes.
- VariantMap can be indexed by a StringHash object directly.
- Bind a generic Get() method for Variant class to automatically "unbox" the stored object and assign it to a type less Lua object.
- Prevent Lua VM crashes when invalid type name is being passed when calling GetVoidPtr() and GetPtr().
2015-08-18 17:04:55 +08:00
Lasse Öörni
0f0a73c9f6 Fallback when crossproduct in Quaternion::FromLookRotation() becomes zero. Fixes #846. 2015-08-17 18:16:00 +03:00
Lasse Öörni
adc04560ce Added warning for infinite PhysicsWorld raycast. 2015-08-17 11:50:14 +03:00
Yao Wei Tjong 姚伟忠
1cc09cb704 For Coverity Scan - check in the failed model file anyway.
[ci skip]
2015-08-17 12:01:46 +08:00
Yao Wei Tjong 姚伟忠
0e031852d1 Suppress most of the false positive on out-of-bound access.
The affect of this change can only be checked after the next Coverity Scan run on this Thursday.
2015-08-16 16:44:19 +08:00
Yao Wei Tjong 姚伟忠
ff501b39cc Fix CID 105884 (UNINIT_CTOR) - initialize Renderer2D::viewMask_. 2015-08-16 16:44:19 +08:00
urho3d-travis-ci
002d5a2688 Travis CI: API documentation update at 2015-08-16 07:57:58 UTC.
[ci package]

Commit: 69dd312d54

Message: Reformat and reorganize include for Navigation sub-library.
2015-08-16 07:57:58 +00:00
Yao Wei Tjong 姚伟忠
69dd312d54 Reformat and reorganize include for Navigation sub-library. 2015-08-16 15:43:13 +08:00
Yao Wei Tjong 姚伟忠
ac0a712f0b Refactor to rename 'filter type' to 'query filter type'.
Minor clean up on the NavBuildData class.
2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
a58d855e60 Do not assume the location of the NavigationMesh component. 2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
27cc9c4277 Add filter and obstacle avoidance type attribute to CrowdManager class.
Enhance Editor to have functionality to edit the CrowdManager's filter and obstacle avoidance type attributes.
2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
b7d03abfe1 Add navigation mesh id attribute to CrowdManager class. 2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
c9bc4cbae3 Add new event for crowd agent formation.
Add convenient methods for querying point, path, raycast, etc using crowd's extent and filter type configuration.
2015-08-16 15:43:12 +08:00