Browse Source

performance warning

David Rose 21 years ago
parent
commit
8b9b3f6602
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/egg/parser.yxx

+ 1 - 1
panda/src/egg/parser.yxx

@@ -1823,7 +1823,7 @@ primitive_body:
     }
     }
   } else if (cmp_nocase_uh(name, "perspective") == 0) {
   } else if (cmp_nocase_uh(name, "perspective") == 0) {
     if (primitive->is_of_type(EggPoint::get_class_type())) {
     if (primitive->is_of_type(EggPoint::get_class_type())) {
-      DCAST(EggPoint, primitive)->set_perspective(value);
+      DCAST(EggPoint, primitive)->set_perspective(value != 0);
     } else {
     } else {
       eggyywarning("scalar perspective is only meaningful for points.");
       eggyywarning("scalar perspective is only meaningful for points.");
     }
     }