Tool Scale does not update dictionary. WHY? is Bug?
-
Tool Scale does (
) not update dictionary1 - Create a Dynamic Component "CUBE".
2 - Update LenX value and Click "Apply" ButtonResult: Component set new value and Dictionary "dynamic_attributes" is updated.
1 - Create a Dynamic Component "CUBE".
2 - (
) Tool Scale Component "CUBE" and Not Click in "Apply" ButtonResult: Component set new value and Dictionary "dynamic_attributes" is NOT updated. WHY?, is Bug?
I get source code of Apply Button in "C:\Program Files\Google\Google SketchUp 8\Tools\DynamicComponents\js\configurator.js" line 389
/** * Responds to requests (usually initiated via the UI) to apply any changes * made to the configuration panel so they appear in SketchUp. */ cfg.doApply = function() { var key; var parts; var entityID; var attribute; var value; var noRedraw; var attributeCount = 0; var changes; var elem; var name; // Current field isn't always picked up if the user didn't tab out but // instead just hit return...so grab its value. if (su.isValid(elem = document.activeElement)) { name = elem.getAttribute('id') || elem.getAttribute('name'); if (su.notEmpty(name) && (name != 'applyButton')) { // Force the blur of the currently selected element to ensure that // storeChanges for that value is fired. elem.blur(); } } // If the changed value list doesn't have values then we can simply return. if (su.isEmpty(su.getKeys(cfg.changedValues))) { return; } // The changed values hash can carry the data to be serialized for // transmission over the bridge, we just need to include the entities. comp.pushAttributeSet(cfg.entityIds, cfg.changedValues); cfg.changedValues = {}; };
![Create a Component "CUBE"](/uploads/imported_attachments/Lcr8_Scale_Bug_01.png "Create a Component "CUBE"")
![Update LenX value and Click "Apply" Button](/uploads/imported_attachments/s8DL_Scale_Bug_02.png "Update LenX value and Click "Apply" Button")
![Tool Scale Component "CUBE" and Not Click in "Apply" Button](/uploads/imported_attachments/4S7p_Scale_Bug_03.png "Tool Scale Component "CUBE" and Not Click in "Apply" Button")
Advertisement