Populate java objects with native data from a3d file.
Remove legacy constructor from programraster Make a3d object creation synchronous Change-Id: Ic7d7547cf6eee6f9a7c6e3ee12cd104e80056a7b
This commit is contained in:
@@ -45,6 +45,16 @@ public class Allocation extends BaseObj {
|
||||
mID = id;
|
||||
}
|
||||
|
||||
@Override
|
||||
void updateFromNative() {
|
||||
mRS.validate();
|
||||
int typeID = mRS.nAllocationGetType(mID);
|
||||
if(typeID != 0) {
|
||||
mType = new Type(typeID, mRS);
|
||||
mType.updateFromNative();
|
||||
}
|
||||
}
|
||||
|
||||
public Type getType() {
|
||||
return mType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user