Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2005-09-28 15:55:43 +0400
committerMatt Ebb <matt@mke3.net>2005-09-28 15:55:43 +0400
commitc1e83406387a6c3a507d0f1ac8854b0148deebc8 (patch)
treeb0b2e626bdcdfe0a3048ce9bb22405d02da60a1b /source/blender/src/editcurve.c
parent2a08be6e507e0a128ebfb940449655780fc78454 (diff)
* Added 'Set Smooth' and 'Set Solid' to the mesh edit mode specials menu/toolbox/3d view menu so you don't always have to keep switching back to edit buttons.
Diffstat (limited to 'source/blender/src/editcurve.c')
-rw-r--r--source/blender/src/editcurve.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/source/blender/src/editcurve.c b/source/blender/src/editcurve.c
index cd15736c175..22a48e86880 100644
--- a/source/blender/src/editcurve.c
+++ b/source/blender/src/editcurve.c
@@ -3256,6 +3256,29 @@ void delNurb()
}
+void nurb_set_smooth(short event)
+{
+ Nurb *nu;
+
+ if(G.obedit==0) return;
+
+ if(G.obedit->type != OB_CURVE) return;
+
+ nu= editNurb.first;
+ while(nu) {
+ if(isNurbsel(nu)) {
+ if(event==1) nu->flag |= CU_SMOOTH;
+ else if(event==0) nu->flag &= ~CU_SMOOTH;
+ }
+ nu= nu->next;
+ }
+
+ DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA);
+ allqueue(REDRAWVIEW3D, 0);
+
+ if(event==1) BIF_undo_push("Set Smooth");
+ else if(event==0) BIF_undo_push("Set Solid");
+}
void join_curve(int type)
{