mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-08 18:13:52 +00:00
test(objects): add load-time clamp + uniqueId round-trip tests
- ObjectPlacer load: scale=0 clamped to 1.0, missing scale field defaults to 1.0 (locks in the load-side guard at line 346). - ObjectPlacer save→load: uniqueId values survive a full round trip (locks in the explicit uniqueId preservation behavior the ADT round-trip relies on). Adds object_placer.cpp to test_editor_units sources.
This commit is contained in:
parent
e6b0a84f3a
commit
f76aebc4b9
2 changed files with 51 additions and 0 deletions
|
|
@ -434,6 +434,7 @@ add_executable(test_editor_units
|
|||
${CMAKE_SOURCE_DIR}/tools/editor/quest_editor.cpp
|
||||
${CMAKE_SOURCE_DIR}/tools/editor/content_pack.cpp
|
||||
${CMAKE_SOURCE_DIR}/tools/editor/editor_brush.cpp
|
||||
${CMAKE_SOURCE_DIR}/tools/editor/object_placer.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/core/logger.cpp
|
||||
)
|
||||
target_include_directories(test_editor_units PRIVATE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue