mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
Fixed invokeMethod bug + removed debug
This commit is contained in:
parent
e1365a2927
commit
0d039b1cdb
3 changed files with 3 additions and 3 deletions
|
@ -1168,7 +1168,6 @@ function handeMenuEvent(menuItem){
|
|||
angles.z = array[7].value;
|
||||
selectedModelProperties.modelRotation = Quat.fromVec3Degrees(angles);
|
||||
selectedModelProperties.radius = array[8].value / 2;
|
||||
print(selectedModelProperties.radius);
|
||||
|
||||
Models.editModel(selectedModelID, selectedModelProperties);
|
||||
}
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
// Generic client side Octree renderer class.
|
||||
class ModelTreeRenderer : public OctreeRenderer, public ModelItemFBXService {
|
||||
Q_OBJECT
|
||||
public:
|
||||
ModelTreeRenderer();
|
||||
virtual ~ModelTreeRenderer();
|
||||
|
@ -56,7 +57,7 @@ public:
|
|||
|
||||
protected:
|
||||
void clearModelsCache();
|
||||
Model* getModel(const ModelItem& modelItem);
|
||||
Q_INVOKABLE Model* getModel(const ModelItem& modelItem);
|
||||
QMap<uint32_t, Model*> _knownModelsItemModels;
|
||||
QMap<uint32_t, Model*> _unknownModelsItemModels;
|
||||
};
|
||||
|
|
|
@ -70,7 +70,7 @@ ModelItemProperties ModelsScriptingInterface::getModelProperties(ModelItemID mod
|
|||
if (_modelTree) {
|
||||
_modelTree->lockForRead();
|
||||
ModelItem* model = const_cast<ModelItem*>(_modelTree->findModelByID(identity.id, true));
|
||||
if (model) {
|
||||
if (model && _modelTree->getGeometryForModel(*model)) {
|
||||
model->setSittingPoints(_modelTree->getGeometryForModel(*model)->sittingPoints);
|
||||
results.copyFromModelItem(*model);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue