Move ParticlesMaterial code to its own resource file
It's shared by both 2D and 3D particles (+ CPU ones), so it makes sense to have as a common resource. It also allowed to disable compilation of Particles (3D) when using 'disable_3d'. Also cleaned up includes in SpatialEditorGizmos and some other places, as well as dropped dead code in material_editor_plugin.cpp.
This commit is contained in:
parent
1ebfd918d4
commit
5fe01d4cfc
22 changed files with 1606 additions and 2001 deletions
|
|
@ -29,9 +29,12 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "particles_editor_plugin.h"
|
||||
|
||||
#include "editor/plugins/spatial_editor_plugin.h"
|
||||
#include "io/resource_loader.h"
|
||||
#include "scene/3d/cpu_particles.h"
|
||||
#include "scene/resources/particles_material.h"
|
||||
|
||||
bool ParticlesEditorBase::_generate(PoolVector<Vector3> &points, PoolVector<Vector3> &normals) {
|
||||
|
||||
bool use_normals = emission_fill->get_selected() == 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue