can't use general setPropertyRecursive due to special handling of basis
| 1359 | |
| 1360 | // can't use general setPropertyRecursive due to special handling of basis |
| 1361 | bool setPropertyRecursive(const QString &name, QVariant value) |
| 1362 | { |
| 1363 | if (br::Object::setExistingProperty(name, value)) |
| 1364 | return true; |
| 1365 | |
| 1366 | for (int i=0; i < basis->transforms.size();i++) { |
| 1367 | if (basis->transforms[i]->setPropertyRecursive(name, value)) { |
| 1368 | basis->init(); |
| 1369 | return true; |
| 1370 | } |
| 1371 | } |
| 1372 | |
| 1373 | if (basis->endPoint->setPropertyRecursive(name, value)) { |
| 1374 | basis->endPoint->init(); |
| 1375 | return true; |
| 1376 | } |
| 1377 | |
| 1378 | return false; |
| 1379 | } |
| 1380 | |
| 1381 | // Stream acts as a shallow interface to DirectStream, so it's fine to remove ourselves here |
| 1382 | Transform *simplify(bool &newTransform) |