about summary refs log tree commit diff
path: root/src/game/editor/ed_layer_quads.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/editor/ed_layer_quads.cpp')
-rw-r--r--src/game/editor/ed_layer_quads.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/game/editor/ed_layer_quads.cpp b/src/game/editor/ed_layer_quads.cpp
index ca84ffe8..e945dd16 100644
--- a/src/game/editor/ed_layer_quads.cpp
+++ b/src/game/editor/ed_layer_quads.cpp
@@ -194,3 +194,16 @@ int LAYER_QUADS::render_properties(RECT *toolbox)
 }
 
 
+void LAYER_QUADS::modify_image_index(index_modify_func func)
+{
+	func(&image);
+}
+
+void LAYER_QUADS::modify_envelope_index(index_modify_func func)
+{
+	for(int i = 0; i < quads.len(); i++)
+	{
+		func(&quads[i].pos_env);
+		func(&quads[i].color_env);
+	}
+}