mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:09:24 +02:00
Fix bug with ModelItemProperties
When copying from a ModelItem the properties should be considered changed
This commit is contained in:
parent
68f1ad79d6
commit
49e35bbc84
1 changed files with 12 additions and 12 deletions
|
@ -1142,19 +1142,19 @@ void ModelItemProperties::copyFromModelItem(const ModelItem& modelItem) {
|
||||||
_id = modelItem.getID();
|
_id = modelItem.getID();
|
||||||
_idSet = true;
|
_idSet = true;
|
||||||
|
|
||||||
_positionChanged = false;
|
_positionChanged = true;
|
||||||
_colorChanged = false;
|
_colorChanged = true;
|
||||||
_radiusChanged = false;
|
_radiusChanged = true;
|
||||||
|
|
||||||
_shouldDieChanged = false;
|
_shouldDieChanged = true;
|
||||||
_modelURLChanged = false;
|
_modelURLChanged = true;
|
||||||
_modelRotationChanged = false;
|
_modelRotationChanged = true;
|
||||||
_animationURLChanged = false;
|
_animationURLChanged = true;
|
||||||
_animationIsPlayingChanged = false;
|
_animationIsPlayingChanged = true;
|
||||||
_animationFrameIndexChanged = false;
|
_animationFrameIndexChanged = true;
|
||||||
_animationFPSChanged = false;
|
_animationFPSChanged = true;
|
||||||
_glowLevelChanged = false;
|
_glowLevelChanged = true;
|
||||||
_defaultSettings = false;
|
_defaultSettings = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
QScriptValue ModelItemPropertiesToScriptValue(QScriptEngine* engine, const ModelItemProperties& properties) {
|
QScriptValue ModelItemPropertiesToScriptValue(QScriptEngine* engine, const ModelItemProperties& properties) {
|
||||||
|
|
Loading…
Reference in a new issue