def setup_geom(self): """Move to pos, turn by angle and scale by scale""" super(ScalePart,self).setup_geom() scale=self.scale if scale and scale != 1: glEnable(GL_NORMALIZE) glScalef(scale,scale,scale)
def setup_geom(self): """Move to pos, turn by angle and scale by scale""" super(ScalePart, self).setup_geom() scale = self.scale if scale and scale != 1: glEnable(GL_NORMALIZE) glScalef(scale, scale, scale)
def setup_geom(self): """Move to pos, turn by angle and scale by scale""" super(ScalePart, self).setup_geom() scale = self.scale if scale and scale != 1: if isinstance(scale, (int, float)): sx, sy, sz = scale, scale, scale else: sx, sy, sz = scale glEnable(GL_NORMALIZE) glScalef(sx, sy, sz)