Core: modernize type checking
This commit is contained in:
@@ -172,7 +172,7 @@ bool ExpressionBinding::assignToProperty(const std::string & propName, double va
|
||||
if (prop && prop->isReadOnly())
|
||||
return true;
|
||||
|
||||
if (prop && prop->getTypeId().isDerivedFrom(App::PropertyPlacement::getClassTypeId())) {
|
||||
if (prop && prop->isDerivedFrom<App::PropertyPlacement>()) {
|
||||
std::string p = path.getSubPathStr();
|
||||
if (p == ".Rotation.Angle") {
|
||||
value = Base::toRadians(value);
|
||||
|
||||
Reference in New Issue
Block a user