AVolume derived class won't show volume in editor

Addie
Sat, 19 Oct 2019 06:25:42 +0000
Pipeline & Plugins

AVolume derived classes that worked in 4.22 are behaving inconsistently between builds and even loads in 4.23.

1. Make plugin

2. Use the editor wizard to create an AVolume derived C++ class named “MyVolume”.

3. Build, reload and drag MyVolume into world. Note that volume bounding box appears and brush is set.

4. Add some properties to the class in C++. Rebuild and reload.

5. MyVolume no longer creates bounding box and brush shape is unset. Setting brush shape makes no difference.

6. Quit editor, delete all binaries folders, saved, intermedia and project. Generate project files. Remove all modifications to MyVolume. Clean build project. Load editor.

7. Drag new MyVolume 2 into world. Volume bounding box does not appear.

This isn’t a perfect set of steps to recreate it - it’s very inconsistent but I am definitely getting multiple failures as described above.

Update: I moved my code back to 4.22 and the problem manifested itself there too. There must be something wrong with my code. Here is the header: https://pastebin.com/VeFgHuEj

I cannot for the life of me work out what the issue is, nor why the above behaviour still manifests after the class has been reverted.

8 posts - 4 participants