Page MenuHomeFeedback Tracker

set3DENAttribute/set3DENAttributes misbehave and lack input validation
New, NormalPublic

Description

When _entity is a 3DEN entity with only 2 size dimensions exposed (i.e. ModuleHideTerrainObjects_F/ModuleCuratorAddEditingArea_F or marker):
Running _entity set3DENAttribute ["size2", [5,5]]; returns true and does change the size.
Running _entity set3DENAttribute ["size3", [5,5,5]]; returns true but doesn't actually change the size of entity. Returning success when nothing is done is confusing. I'd expect it to either apply the relevant parts of the size (and ignore the extra) or return false.
Running _entity set3DENAttribute ["size2", [5,5,5]]; returns true and changes size to nonsense values like [3.98238e+36,1.16308e-43,0]. I'd expect it to either correctly apply the relevant parts of the size (and ignore the extra) or return false.
set3DENAttributes does that as well.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Eden Editor
Steps To Reproduce
  1. Run 3DEN, place ModuleHideTerrainObjects_F/ModuleCuratorAddEditingArea_F modules ("Environment>Hide Terrain Objects"/"Zeus>Add Editing Area").
  2. Open debug console, run [ set3DENAttributes [[all3DENEntities#3, "size3", [1,1,1]]], all3DENEntities#3#0 set3DENAttribute ["size3", [2,2,2]] ]. It returns [true,true], module sizes don't change.
  3. Run [ set3DENAttributes [[all3DENEntities#3, "size2", [3,3]]], all3DENEntities#3#0 set3DENAttribute ["size2", [4,4]] ], it returns [true, true], module sizes do change.
  4. Run [ set3DENAttributes [[all3DENEntities#3, "size2", [6,6,6]]], all3DENEntities#3#0 set3DENAttribute ["size2", [7,7,7]] ], module sizes change to nonsense values.
Additional Information

Tested on dev build productVersion => ["Arma 3","Arma3",219,152564,"Development",true,"Windows","x64"]

Event Timeline

artemoz created this task.Fri, Jan 17, 8:08 AM