Cleanup: various minor changes
- Add missing doxy-section for Apply Parent Inverse Operator - Use identity for None comparison in Python. - Remove newline from operator doc-strings. - Use '*' prefix multi-line C comment blocks. - Separate filenames from doc-strings. - Remove break after return.
This commit is contained in:
@@ -1028,8 +1028,8 @@ ccl_device_forceinline bool kernel_path_mnee_sample(KernelGlobals kg,
|
|||||||
bsdf->type == CLOSURE_BSDF_MICROFACET_MULTI_GGX_GLASS_ID ||
|
bsdf->type == CLOSURE_BSDF_MICROFACET_MULTI_GGX_GLASS_ID ||
|
||||||
bsdf->type == CLOSURE_BSDF_MICROFACET_MULTI_GGX_GLASS_FRESNEL_ID) {
|
bsdf->type == CLOSURE_BSDF_MICROFACET_MULTI_GGX_GLASS_FRESNEL_ID) {
|
||||||
/* Note that CLOSURE_BSDF_MICROFACET_MULTI_GGX_GLASS_ID and
|
/* Note that CLOSURE_BSDF_MICROFACET_MULTI_GGX_GLASS_ID and
|
||||||
CLOSURE_BSDF_MICROFACET_MULTI_GGX_GLASS_FRESNEL_ID are treated as
|
* CLOSURE_BSDF_MICROFACET_MULTI_GGX_GLASS_FRESNEL_ID are treated as
|
||||||
CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID further below */
|
* CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID further below. */
|
||||||
|
|
||||||
found_transimissive_microfacet_bsdf = true;
|
found_transimissive_microfacet_bsdf = true;
|
||||||
ccl_private MicrofacetBsdf *microfacet_bsdf = (ccl_private MicrofacetBsdf *)bsdf;
|
ccl_private MicrofacetBsdf *microfacet_bsdf = (ccl_private MicrofacetBsdf *)bsdf;
|
||||||
|
@@ -731,6 +731,7 @@ enum {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* paint_canvas.cc */
|
/* paint_canvas.cc */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a key that can be used to compare with previous ones to identify changes.
|
* Create a key that can be used to compare with previous ones to identify changes.
|
||||||
* The resulting 'string' is owned by the caller.
|
* The resulting 'string' is owned by the caller.
|
||||||
|
@@ -267,6 +267,7 @@ bool pbvh_bmesh_node_nearest_to_ray(PBVHNode *node,
|
|||||||
void pbvh_bmesh_normals_update(PBVHNode **nodes, int totnode);
|
void pbvh_bmesh_normals_update(PBVHNode **nodes, int totnode);
|
||||||
|
|
||||||
/* pbvh_pixels.hh */
|
/* pbvh_pixels.hh */
|
||||||
|
|
||||||
void pbvh_pixels_free(PBVHNode *node);
|
void pbvh_pixels_free(PBVHNode *node);
|
||||||
void pbvh_pixels_free_brush_test(PBVHNode *node);
|
void pbvh_pixels_free_brush_test(PBVHNode *node);
|
||||||
|
|
||||||
|
@@ -5,7 +5,6 @@
|
|||||||
* \ingroup blenlib
|
* \ingroup blenlib
|
||||||
*
|
*
|
||||||
* Contains color mixing utilities.
|
* Contains color mixing utilities.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "BLI_color.hh"
|
#include "BLI_color.hh"
|
||||||
|
@@ -1170,6 +1170,12 @@ void OBJECT_OT_transform_apply(wmOperatorType *ot)
|
|||||||
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** \} */
|
||||||
|
|
||||||
|
/* -------------------------------------------------------------------- */
|
||||||
|
/** \name Apply Parent Inverse Operator
|
||||||
|
* \{ */
|
||||||
|
|
||||||
static int object_parent_inverse_apply_exec(bContext *C, wmOperator *UNUSED(op))
|
static int object_parent_inverse_apply_exec(bContext *C, wmOperator *UNUSED(op))
|
||||||
{
|
{
|
||||||
CTX_DATA_BEGIN (C, Object *, ob, selected_editable_objects) {
|
CTX_DATA_BEGIN (C, Object *, ob, selected_editable_objects) {
|
||||||
|
@@ -227,7 +227,6 @@ static int snode_bg_viewmove_modal(bContext *C, wmOperator *op, const wmEvent *e
|
|||||||
op->customdata = nullptr;
|
op->customdata = nullptr;
|
||||||
|
|
||||||
return OPERATOR_CANCELLED;
|
return OPERATOR_CANCELLED;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return OPERATOR_RUNNING_MODAL;
|
return OPERATOR_RUNNING_MODAL;
|
||||||
|
@@ -3095,7 +3095,7 @@ static void rna_def_tool_settings(BlenderRNA *brna)
|
|||||||
RNA_def_property_ui_text(prop,
|
RNA_def_property_ui_text(prop,
|
||||||
"Lock Object Modes",
|
"Lock Object Modes",
|
||||||
"Restrict selection to objects using the same mode as the active "
|
"Restrict selection to objects using the same mode as the active "
|
||||||
"object,\nto prevent accidental mode switch when selecting");
|
"object, to prevent accidental mode switch when selecting");
|
||||||
RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL);
|
RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL);
|
||||||
|
|
||||||
static const EnumPropertyItem workspace_tool_items[] = {
|
static const EnumPropertyItem workspace_tool_items[] = {
|
||||||
|
@@ -333,7 +333,7 @@ def main():
|
|||||||
|
|
||||||
argv = sys.argv[2:]
|
argv = sys.argv[2:]
|
||||||
blender_git_dir = find_blender_git_dir()
|
blender_git_dir = find_blender_git_dir()
|
||||||
if blender_git_dir == None:
|
if blender_git_dir is None:
|
||||||
sys.stderr.write('Error: no blender git repository found from current working directory\n')
|
sys.stderr.write('Error: no blender git repository found from current working directory\n')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user