mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
fix multi-selection color setting visible/locked to false
This commit is contained in:
parent
b7069fff71
commit
09ccd3acf0
2 changed files with 4 additions and 5 deletions
|
@ -2027,12 +2027,8 @@ var PropertiesTool = function (opts) {
|
|||
} else if (data.type === "update") {
|
||||
selectionManager.saveProperties();
|
||||
if (selectionManager.selections.length > 1) {
|
||||
properties = {
|
||||
locked: data.properties.locked,
|
||||
visible: data.properties.visible
|
||||
};
|
||||
for (i = 0; i < selectionManager.selections.length; i++) {
|
||||
Entities.editEntity(selectionManager.selections[i], properties);
|
||||
Entities.editEntity(selectionManager.selections[i], data.properties);
|
||||
}
|
||||
} else if (data.properties) {
|
||||
if (data.properties.dynamic === false) {
|
||||
|
|
|
@ -269,6 +269,9 @@ For usage and examples: colpick.com/plugin
|
|||
},
|
||||
// Show/hide the color picker
|
||||
show = function (ev) {
|
||||
if ($(this).attr('disabled')) {
|
||||
return;
|
||||
}
|
||||
// Prevent the trigger of any direct parent
|
||||
ev.stopPropagation();
|
||||
var cal = $('#' + $(this).data('colpickId'));
|
||||
|
|
Loading…
Reference in a new issue