Commit 9d1b9fba authored by Claes Sjofors's avatar Claes Sjofors

Ge action AnalogValue, refrence added

parent 95db152a
...@@ -5205,7 +5205,7 @@ void GeAnalogColor::get_attributes( attr_sItem *attrinfo, int *item_count) ...@@ -5205,7 +5205,7 @@ void GeAnalogColor::get_attributes( attr_sItem *attrinfo, int *item_count)
attrinfo[i].type = glow_eType_ToneOrColor; attrinfo[i].type = glow_eType_ToneOrColor;
attrinfo[i++].size = sizeof( limit_type); attrinfo[i++].size = sizeof( limit_type);
sprintf( attrinfo[i].name, "AnalogTone%d.LimitType", inst); sprintf( attrinfo[i].name, "AnalogTone%d.LimitType", inst);
attrinfo[i].value = &limit_type; attrinfo[i].value = &limit_type;
attrinfo[i].type = ge_eAttrType_LimitType; attrinfo[i].type = ge_eAttrType_LimitType;
attrinfo[i++].size = sizeof( limit_type); attrinfo[i++].size = sizeof( limit_type);
...@@ -18655,7 +18655,11 @@ int GeSetValue::action( grow_tObject object, glow_tEvent event) ...@@ -18655,7 +18655,11 @@ int GeSetValue::action( grow_tObject object, glow_tEvent event)
break; break;
db = dyn->parse_attr_name( attribute, parsed_name, &inverted, &attr_type, db = dyn->parse_attr_name( attribute, parsed_name, &inverted, &attr_type,
&attr_size); &attr_size);
if ( parsed_name[0] == '&')
// Attribute starting with '&' indicates reference
dyn->graph->get_reference_name( parsed_name, parsed_name);
sts = graph_attr_string_to_value( attr_type, value, sts = graph_attr_string_to_value( attr_type, value,
(void *)&buf, sizeof( buf), sizeof(buf)); (void *)&buf, sizeof( buf), sizeof(buf));
if ( EVEN(sts)) { if ( EVEN(sts)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment