History

fix selection api

Dante Ruiz committed 8 years ago

Commit 00713ab1 parent 1d76dea3 files · +10 −4Browse files

Showing the changes to interface/src/scripting/SelectionScriptingInterface.cpp (1 of 3 files). Show all

Unified · Split

interface/src/scripting/SelectionScriptingInterface.cpp+3−1
@@ -110,6 +110,7 @@ bool SelectionScriptingInterface::enableListHighlight(const QString& listName, c · 109 unmodified lines
110 }110 }
111 111
112 if (!(*highlightStyle).isBoundToList()) {112 if (!(*highlightStyle).isBoundToList()) {
113 enableListToScene(listName);
113 (*highlightStyle).setBoundToList(true);114 (*highlightStyle).setBoundToList(true);
114 }115 }
115 116
@@ -133,6 +134,7 @@ bool SelectionScriptingInterface::disableListHighlight(const QString& listName) · 17 unmodified lines
133 auto highlightStyle = _highlightStyleMap.find(listName);134 auto highlightStyle = _highlightStyleMap.find(listName);
134 if (highlightStyle != _highlightStyleMap.end()) {135 if (highlightStyle != _highlightStyleMap.end()) {
135 if ((*highlightStyle).isBoundToList()) {136 if ((*highlightStyle).isBoundToList()) {
137 disableListToScene(listName);
136 }138 }
137 139
138 _highlightStyleMap.erase(highlightStyle);140 _highlightStyleMap.erase(highlightStyle);
@@ -476,4 +478,4 @@ QVariantMap SelectionHighlightStyle::toVariantMap() const { · 337 unmodified lines
476 properties["isOutlineSmooth"] = _style._isOutlineSmooth;478 properties["isOutlineSmooth"] = _style._isOutlineSmooth;
477 479
478 return properties;480 return properties;
479}481}