Panda3D Code Issue

It could be a problem on the line before it. Like if you forgot a “,” or “)” or “:” or something somewhere. It might still be valid until that line, although the line by itself is correct. Also make sure to indent using only spaces, never tabs! If you mix them together Python can’t tell where your blocks begin and end. Some IDE’s can take care of this for you, so check the documentation.