Sometimes I instinctively put one in because I'm used to writing C++.
col.prop(self, "textures")
col.separator()
- self.layout.separator();
+ self.layout.separator()
col = self.layout.column()
col.label("Files")
bpy.types.INFO_MT_file_export.append(menu_func_export)
from .properties import register_properties
- register_properties();
+ register_properties()
def unregister():
bpy.utils.unregister_module(__name__)
out_file.write("ambient", cm(amb.r), cm(amb.g), cm(amb.b), 1.0)
spec = mat.specular_color*mat.specular_intensity
out_file.write("specular", spec.r, spec.g, spec.b, 1.0)
- out_file.write("shininess", mat.specular_hardness);
+ out_file.write("shininess", mat.specular_hardness)
axis = q.axis
out_file.write("rotation", angle*180/math.pi, axis[0], axis[1], axis[2])
out_file.write("scale", o.scale[0], o.scale[1], o.scale[2])
- out_file.end();
+ out_file.end()
def draw(self, context):
obj = context.active_object
- self.layout.prop(obj, "technique");
- self.layout.prop(obj, "inherit_tech");
+ self.layout.prop(obj, "technique")
+ self.layout.prop(obj, "inherit_tech")
if obj.inherit_tech:
- self.layout.prop(obj, "override_material");
+ self.layout.prop(obj, "override_material")
self.layout.prop(obj, "material_tex")
- self.layout.prop(obj, "compound");
+ self.layout.prop(obj, "compound")
self.layout.prop(obj, "lod_for_parent")
if obj.lod_for_parent:
self.layout.prop(obj, "lod_index")
return
self.layout.prop(mat, "srgb_colors")
- self.layout.prop(mat, "array_atlas");
+ self.layout.prop(mat, "array_atlas")
if mat.array_atlas:
- self.layout.prop(mat, "array_layer");
+ self.layout.prop(mat, "array_layer")
def register_properties():
bpy.types.Mesh.winding_test = bpy.props.BoolProperty(name="Winding test", description="Perform winding test to skip back faces")
self.enums.sort(key=(lambda e: e.value))
self.core_version = detect_core_version(host_api, things, debug)
self.deprecated_version = detect_deprecated_version(host_api, things, debug)
- self.backport_ext = detect_backport_extension(host_api, things);
+ self.backport_ext = detect_backport_extension(host_api, things)
b, e = detect_source_extension(host_api, things, debug)
self.base_version = b
self.source_exts = e
result += "\\%03o"%ord(c)
else:
result += c
- return result;
+ return result
def make_tex(fn, filter="LINEAR", anisotropy=0, wrap=None, srgb=False):
from PIL import Image