gizmos: use scale instead of matrix transform
Improves appearance of gizmos lines and ensures other controls are drawn in UI dimensions rather than texture dimensions.
This commit is contained in:
+4
-5
@@ -71,14 +71,13 @@ Node *NodeParam::parentNode() const
|
||||
{
|
||||
QObject* p = parent();
|
||||
|
||||
while (p != nullptr) {
|
||||
// Determine if this object is a Node or not
|
||||
while (p) {
|
||||
Node* cast_test = dynamic_cast<Node*>(p);
|
||||
if (cast_test != nullptr) {
|
||||
if (cast_test) {
|
||||
return cast_test;
|
||||
} else {
|
||||
p = p->parent();
|
||||
}
|
||||
|
||||
p = p->parent();
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user