Code cleanup: style/warnings
[blender.git] / source / blender / editors / interface / interface_ops.c
index 9286b58998313a2f7367e927421d53cf8411df42..370e2960709adb01c9ffb55449ffb9a2bfec1652 100644 (file)
@@ -230,8 +230,9 @@ static int unset_property_button_exec(bContext *C, wmOperator *UNUSED(op))
        uiContextActiveProperty(C, &ptr, &prop, &index);
 
        /* if there is a valid property that is editable... */
-       if (ptr.data && prop && RNA_property_editable(&ptr, prop)
-           /*&& RNA_property_is_idprop(prop)*/ && RNA_property_is_set(&ptr, prop))
+       if (ptr.data && prop && RNA_property_editable(&ptr, prop) &&
+           /* RNA_property_is_idprop(prop) && */
+           RNA_property_is_set(&ptr, prop))
        {
                RNA_property_unset(&ptr, prop);
                return operator_button_property_finish(C, &ptr, prop);