Merge branch 'timoore/effects-anim-rebase' into next

This commit is contained in:
Tim Moore 2010-03-11 08:46:22 +01:00
commit fabcb021cb
2 changed files with 2 additions and 3 deletions

View File

@ -829,8 +829,7 @@ struct UniformBuilder :public PassAttributeBuilder
return;
const SGPropertyNode* nameProp = prop->getChild("name");
const SGPropertyNode* typeProp = prop->getChild("type");
const SGPropertyNode* valProp
= getEffectPropertyChild(effect, prop, "value");
const SGPropertyNode* valProp = prop->getChild("value");
string name;
Uniform::Type uniformType = Uniform::FLOAT;
if (nameProp) {

View File

@ -594,7 +594,7 @@ initFromParameters(Effect* effect, const SGPropertyNode* prop, ObjType* obj,
if (valProp->nChildren() == 0) {
setter(obj, valProp->getValue<OSGParamType>());
} else {
std::string propName = getGlobalProperty(prop, options);
std::string propName = getGlobalProperty(valProp, options);
ScalarChangeListener<OSGParamType, ObjType, F>* listener
= new ScalarChangeListener<OSGParamType, ObjType, F>(obj, setter,
propName);