Code cleanup: style
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
# <pep8 compliant>
|
||||
|
||||
|
||||
class GreasePencilPanel():
|
||||
# subclass must set
|
||||
# bl_space_type = 'IMAGE_EDITOR'
|
||||
|
@@ -23,6 +23,7 @@ from bpy.types import Panel, Header, Menu, UIList
|
||||
from bpy.app.translations import pgettext_iface as iface_
|
||||
from bl_ui.properties_grease_pencil_common import GreasePencilPanel
|
||||
|
||||
|
||||
class CLIP_UL_tracking_objects(UIList):
|
||||
def draw_item(self, context, layout, data, item, icon,
|
||||
active_data, active_propname, index):
|
||||
|
@@ -45,6 +45,7 @@ class BrushButtonsPanel:
|
||||
toolsettings = context.tool_settings.image_paint
|
||||
return sima.show_paint and toolsettings.brush
|
||||
|
||||
|
||||
class UVToolsPanel:
|
||||
bl_space_type = 'IMAGE_EDITOR'
|
||||
bl_region_type = 'TOOLS'
|
||||
@@ -55,6 +56,7 @@ class UVToolsPanel:
|
||||
sima = context.space_data
|
||||
return sima.show_uvedit and not context.tool_settings.use_uv_sculpt
|
||||
|
||||
|
||||
class IMAGE_MT_view(Menu):
|
||||
bl_label = "View"
|
||||
|
||||
@@ -494,6 +496,7 @@ class IMAGE_PT_mask(MASK_PT_mask, Panel):
|
||||
bl_space_type = 'IMAGE_EDITOR'
|
||||
bl_region_type = 'UI'
|
||||
|
||||
|
||||
class IMAGE_PT_mask_layers(MASK_PT_layers, Panel):
|
||||
bl_space_type = 'IMAGE_EDITOR'
|
||||
bl_region_type = 'UI'
|
||||
@@ -653,6 +656,7 @@ class IMAGE_PT_tools_transform_uvs(Panel, UVToolsPanel):
|
||||
|
||||
col.operator("transform.shear")
|
||||
|
||||
|
||||
class IMAGE_PT_paint(Panel, ImagePaintPanel):
|
||||
bl_label = "Paint"
|
||||
|
||||
@@ -986,6 +990,7 @@ class IMAGE_PT_tools_mask(MASK_PT_tools, Panel):
|
||||
|
||||
# --- end mask ---
|
||||
|
||||
|
||||
class IMAGE_PT_view_histogram(Panel):
|
||||
bl_space_type = 'IMAGE_EDITOR'
|
||||
bl_region_type = 'TOOLS'
|
||||
|
@@ -3106,7 +3106,7 @@ short DAG_get_eval_flags_for_object(struct Scene *scene, void *object)
|
||||
return 0;
|
||||
}
|
||||
|
||||
node = dag_find_node(scene->theDag, object);;
|
||||
node = dag_find_node(scene->theDag, object);
|
||||
|
||||
if (node) {
|
||||
return node->eval_flags;
|
||||
|
@@ -1368,7 +1368,6 @@ int node_render_changed_exec(bContext *C, wmOperator *UNUSED(op))
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
||||
}
|
||||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
|
@@ -457,7 +457,7 @@ static void setMPolyMaterial(ExportMeshData *export_data,
|
||||
* otherwise fallback to first material (material with index=0).
|
||||
*/
|
||||
if (!BLI_ghash_haskey(material_hash, orig_mat)) {
|
||||
int a, mat_nr;;
|
||||
int a, mat_nr;
|
||||
|
||||
mat_nr = 0;
|
||||
for (a = 0; a < export_data->ob_left->totcol; a++) {
|
||||
|
@@ -80,7 +80,7 @@ static DerivedMesh *WireframeModifier_do( WireframeModifierData *wmd, Object *ob
|
||||
DerivedMesh *result;
|
||||
BMesh *bm;
|
||||
|
||||
const int defgrp_index = defgroup_name_index(ob, wmd->defgrp_name);;
|
||||
const int defgrp_index = defgroup_name_index(ob, wmd->defgrp_name);
|
||||
|
||||
bm = DM_to_bmesh(dm, true);
|
||||
|
||||
|
@@ -610,7 +610,8 @@ void RE_InitState(Render *re, Render *source, RenderData *rd, SceneRenderLayer *
|
||||
}
|
||||
else if (re->result) {
|
||||
if (re->result->rectx == re->rectx && re->result->recty == re->recty &&
|
||||
prev_actlay == re->r.actlay) {
|
||||
prev_actlay == re->r.actlay)
|
||||
{
|
||||
/* keep render result, this avoids flickering black tiles
|
||||
* when the preview changes */
|
||||
}
|
||||
|
Reference in New Issue
Block a user