Bugfix: fixed a bug that caused IDENTITY matrix to be changed during loading (sorry about that ;).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10925 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
66c1b0b457
commit
9289d03604
@ -276,7 +276,7 @@ public class ObjectHelper extends AbstractBlenderHelper {
|
||||
* @return objects transformation relative to its parent
|
||||
*/
|
||||
public Transform getTransformation(Structure objectStructure, BlenderContext blenderContext) {
|
||||
Matrix4f parentInv = Matrix4f.IDENTITY;
|
||||
Matrix4f parentInv = Matrix4f.IDENTITY.clone();
|
||||
Pointer pParent = (Pointer) objectStructure.getFieldValue("parent");
|
||||
if(pParent.isNotNull()) {
|
||||
Structure parentObjectStructure = (Structure) blenderContext.getLoadedFeature(pParent.getOldMemoryAddress(), LoadedFeatureDataType.LOADED_STRUCTURE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user