LEFT | RIGHT |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version. | 7 * of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 20 matching lines...) Expand all Loading... |
31 /** \file blender/modifiers/intern/MOD_multires.c | 31 /** \file blender/modifiers/intern/MOD_multires.c |
32 * \ingroup modifiers | 32 * \ingroup modifiers |
33 */ | 33 */ |
34 | 34 |
35 | 35 |
36 #include <stddef.h> | 36 #include <stddef.h> |
37 | 37 |
38 #include "DNA_mesh_types.h" | 38 #include "DNA_mesh_types.h" |
39 #include "DNA_object_types.h" | 39 #include "DNA_object_types.h" |
40 | 40 |
41 #include "BLI_utildefines.h" | |
42 | |
43 #include "BKE_cdderivedmesh.h" | 41 #include "BKE_cdderivedmesh.h" |
44 #include "BKE_mesh.h" | 42 #include "BKE_mesh.h" |
45 #include "BKE_multires.h" | 43 #include "BKE_multires.h" |
46 #include "BKE_modifier.h" | 44 #include "BKE_modifier.h" |
47 #include "BKE_paint.h" | 45 #include "BKE_paint.h" |
48 #include "BKE_subsurf.h" | 46 #include "BKE_subsurf.h" |
49 | 47 |
50 #include "MOD_util.h" | 48 #include "MOD_util.h" |
51 | 49 |
52 static void initData(ModifierData *md) | 50 static void initData(ModifierData *md) |
(...skipping 13 matching lines...) Expand all Loading... |
66 | 64 |
67 tmmd->lvl = mmd->lvl; | 65 tmmd->lvl = mmd->lvl; |
68 tmmd->sculptlvl = mmd->sculptlvl; | 66 tmmd->sculptlvl = mmd->sculptlvl; |
69 tmmd->renderlvl = mmd->renderlvl; | 67 tmmd->renderlvl = mmd->renderlvl; |
70 tmmd->totlvl = mmd->totlvl; | 68 tmmd->totlvl = mmd->totlvl; |
71 tmmd->simple = mmd->simple; | 69 tmmd->simple = mmd->simple; |
72 tmmd->flags = mmd->flags; | 70 tmmd->flags = mmd->flags; |
73 } | 71 } |
74 | 72 |
75 static DerivedMesh *applyModifier(ModifierData *md, Object *ob, DerivedMesh *dm, | 73 static DerivedMesh *applyModifier(ModifierData *md, Object *ob, DerivedMesh *dm, |
76 » MultiresModifierData *mmd = (MultiresModifierData*)md; | 74 ModifierApplyFlag flag) |
| 75 { |
| 76 » MultiresModifierData *mmd = (MultiresModifierData *)md; |
77 DerivedMesh *result; | 77 DerivedMesh *result; |
78 » Mesh *me= (Mesh*)ob->data; | 78 » Mesh *me = (Mesh *)ob->data; |
79 | 79 |
80 if (mmd->totlvl) { | 80 if (mmd->totlvl) { |
81 if (!CustomData_get_layer(&me->ldata, CD_MDISPS)) { | 81 if (!CustomData_get_layer(&me->ldata, CD_MDISPS)) { |
LEFT | RIGHT |