From f9798faa46d067e1ee43119f1aa2c18f068d9b30 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 12 Apr 2005 14:44:17 +0000 Subject: [PATCH] fix color_scale --- panda/src/gobj/qpgeomVertexData.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/gobj/qpgeomVertexData.cxx b/panda/src/gobj/qpgeomVertexData.cxx index 3dea6753dd..2320f173dd 100644 --- a/panda/src/gobj/qpgeomVertexData.cxx +++ b/panda/src/gobj/qpgeomVertexData.cxx @@ -586,7 +586,7 @@ scale_color(const LVecBase4f &color_scale, int num_components, int old_color_array = _format->get_array_with(InternalName::get_color()); if (old_color_array == -1) { // Oops, no color anyway. - return this; + return set_color(color_scale, num_components, numeric_type, contents); } int num_vertices = get_num_vertices();