Repository navigation
Commit 17c4ca1
fix(content): OBJ uses export_eval_mode; USD modifier rule keys on export_subdivision
Measured on .scratch/blender-4.5.11-windows-x64 and blender-5.2.1 (identical):
- wm.obj_export has no evaluation_mode; it is export_eval_mode with
DAG_EVAL_RENDER / DAG_EVAL_VIEWPORT, default DAG_EVAL_VIEWPORT. USD and
Alembic evaluation_mode default to RENDER.
- usd_export with no extra kwargs on a cube with DECIMATE ships 5 points
(modifier applied). With SUBSURF (levels 1, render 2): default -> 8 (cage,
BEST_MATCH), TESSELLATE -> 98, TESSELLATE + VIEWPORT -> 26.
So the depsgraph skill's "USD, Alembic, and OBJ exporters accept
evaluation_mode" produced a TypeError for OBJ, and the rule treated a USD call
without evaluation_mode as "never requests evaluated geometry" while accepting
evaluation_mode='RENDER' with default BEST_MATCH, the real cage bug.
- depsgraph-and-evaluated-data: per-exporter table of parameter, values and
default; notes OBJ's default is the opposite of USD's.
- no-unapplied-modifiers-on-export: per-exporter defaults (glTF export_apply
False, FBX use_mesh_modifiers True, USD evaluates by default); flags USD
only for SUBSURF without export_subdivision='TESSELLATE'.
- tests/check_import_export_rules.py: the modifier check is now per call
(glTF needs export_apply=True; FBX flags use_mesh_modifiers=False; USD flags
SUBSURF without TESSELLATE) instead of a whole-file evaluation_mode grep.
Falsified with probe files: USD+SUBSURF+evaluation_mode='RENDER' -> new
ERROR, old passed; USD+DECIMATE no kwargs -> new passes, old ERROR; USD+SUBSURF+
TESSELLATE -> new passes, old ERROR; glTF+DECIMATE no export_apply -> ERROR in
both. Repo scan passes.
Closes #331
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent f293573 commit 17c4ca1
3 files changed
Lines changed: 70 additions & 26 deletions
File tree
- rules
- skills/depsgraph-and-evaluated-data
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
19 | 28 | | |
20 | 29 | | |
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
24 | 33 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
29 | 41 | | |
30 | 42 | | |
31 | 43 | | |
| |||
36 | 48 | | |
37 | 49 | | |
38 | 50 | | |
39 | | - | |
| 51 | + | |
| 52 | + | |
40 | 53 | | |
41 | | - | |
| 54 | + | |
42 | 55 | | |
43 | 56 | | |
44 | 57 | | |
| |||
58 | 71 | | |
59 | 72 | | |
60 | 73 | | |
61 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
62 | 77 | | |
63 | 78 | | |
64 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | | - | |
154 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
155 | 163 | | |
156 | 164 | | |
157 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 21 | | |
25 | 22 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
89 | 110 | | |
90 | 111 | | |
91 | 112 | | |
| |||
0 commit comments