Commit c46e929
committed
Derive NewtonActuator from UsdTyped instead of UsdGeomImageable
Per the schema working group decision, actuators are not imageable. An
actuator carries a control law bound to a joint via `newton:targets`; it
has no extent and is never rendered.
This also fixes the crash reported in #77. `plugInfo.json` declared
`UsdGeomImageable` as the base, but the prim definition in
`generatedSchema.usda` only contains `newton:targets` — the inherited
`visibility`, `purpose` and `proxyPrim` properties were never baked in.
`UsdGeom.BBoxCache` therefore recognized the prim as Imageable and then
failed to read its visibility attribute:
Failed verification: ' attr ' -- Unable to get attribute
'Visibility' on prim at path </World/Actuator>
`UsdTyped` contributes no properties, so the declared base and the prim
definition are now consistent with no change to `generatedSchema.usda`.
This matches how core USD types the same category of non-renderable
prim: `PhysicsScene`, `PhysicsCollisionGroup`, `UsdShadeShader`,
`UsdRenderVar` and `UsdSkelAnimation` are all concreteTyped on UsdTyped.
Note that `UsdGeomScope` would not have fixed the crash, as it is also
Imageable.1 parent ac1107a commit c46e929
2 files changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
38 | 59 | | |
39 | 60 | | |
40 | 61 | | |
| |||
0 commit comments