mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-15 08:08:26 +02:00
Fix isolevel paint and paint brush tools always allowing chunk creation.
This commit is contained in:
parent
a980238482
commit
42a2979d3e
@ -329,10 +329,10 @@ EditorPlugin::AfterGUIInput TerrainWorldEditor::forward_spatial_input_event(Came
|
|||||||
if (mb->get_button_index() == BUTTON_LEFT) {
|
if (mb->get_button_index() == BUTTON_LEFT) {
|
||||||
switch (_tool_mode) {
|
switch (_tool_mode) {
|
||||||
case TOOL_MODE_ISOLEVEL_BRUSH: {
|
case TOOL_MODE_ISOLEVEL_BRUSH: {
|
||||||
create_undo_point(_current_action, _isolevel_brush_channel, _isolevel_brush_allow_creating_chunks_button);
|
create_undo_point(_current_action, _isolevel_brush_channel, _isolevel_brush_allow_create_chunks);
|
||||||
} break;
|
} break;
|
||||||
case TOOL_MODE_PAINT_BRUSH: {
|
case TOOL_MODE_PAINT_BRUSH: {
|
||||||
create_undo_point(_current_action, _paint_brush_channel, _paint_brush_allow_creating_chunks_button);
|
create_undo_point(_current_action, _paint_brush_channel, _paint_brush_allow_create_chunks);
|
||||||
} break;
|
} break;
|
||||||
case TOOL_MODE_PAINT_PICKER: {
|
case TOOL_MODE_PAINT_PICKER: {
|
||||||
Vector3 position;
|
Vector3 position;
|
||||||
|
@ -82,6 +82,7 @@ protected:
|
|||||||
|
|
||||||
// Used by UndoRedo
|
// Used by UndoRedo
|
||||||
void apply_data(const Array &p_data);
|
void apply_data(const Array &p_data);
|
||||||
|
|
||||||
void do_chunk_added_action(const Array &p_data);
|
void do_chunk_added_action(const Array &p_data);
|
||||||
void undo_chunk_added_action(const Array &p_data);
|
void undo_chunk_added_action(const Array &p_data);
|
||||||
void do_chunk_removed_action(const Array &p_data);
|
void do_chunk_removed_action(const Array &p_data);
|
||||||
|
Loading…
Reference in New Issue
Block a user