Commit Graph

1334 Commits

Author SHA1 Message Date
Ton Roosendaal
558f06f791 - fix: switching main Theme didn't update button drawtype for info buttons 2003-11-23 13:48:12 +00:00
Ton Roosendaal
de77f47ac7 - added to Constraint panel the 'Active Bone' or 'Active Object', like
previously was drawn in constraint buttons header.
- cleaned up buttons in panels for manual... just nicer aligning.
2003-11-23 12:22:59 +00:00
Jacques Guignot
86a236b029 several warning fixes, for a bug-free *and* warnings-free 2.31 !
Just moved some declarations, nothing important.
2003-11-22 23:30:40 +00:00
Ton Roosendaal
fbc58ed007 - added button aligning code for most other panels... still unfinished
next step first is cleaning up design in panels itself.
2003-11-22 22:22:16 +00:00
Chris Want
e7d3e24a0e Got rid of many #include "BPY_extern.h"
Homework from Michel: do grep BPY source/blender/src/*
and see if there is anything that needs fixing.
2003-11-22 20:21:59 +00:00
Ton Roosendaal
5af2e7ac25 - this routine is going to be my waterloo!
forgot to check null pointer...
2003-11-22 18:38:53 +00:00
Michel Selten
2b59d04f96 Last part of removing the old Python API implementation. Removed
/source/blender/bpython.
To remove the directories on your system, do a:
cvs update -P
2003-11-22 18:33:54 +00:00
Michel Selten
ef9bfdcc75 A couple of files I left in the intern/python dir needed to be removed as
well.
To remove the directories on your system, do a:
cvs update -P
2003-11-22 17:29:46 +00:00
Michel Selten
930fc9ee40 First action of removing the old Python API stuff from cvs. Removed the
/intern/python stuff.
To remove the directories on your system, do a:
cvs update -P
2003-11-22 17:28:05 +00:00
Ton Roosendaal
abe3881a19 - added check before freeing a font pointer... dunno if its needed, but
better do this anyway!
  theres a 0.01% chance errors with AA goes away now on some platforms...
  but i doubt!
2003-11-22 16:59:54 +00:00
Ton Roosendaal
3c60f8778a - made calloc for clear mverts in subsurf-mesh conversion 2003-11-21 20:52:27 +00:00
Ton Roosendaal
fe46c648e2 fix for description of UI_BLOCK_RET_1. 2003-11-21 13:16:04 +00:00
Ton Roosendaal
dfc72b3f90 - Fix: the MKEY 'movetolayer' option doesnt close anymore on numeric
input. Somewhere in end  NaN period this was changed... weird.

  Now you can set layers with numeric buttons, including using ALT for
  numbers larger than 10, and using SHIFT for extend-select buttons.

  for the UI diehards who like to know; when you create a menu block, you
  can provide two flags to control behaviour on keyboard input:
  UI_BLOCK_RET_1  == return on any keypress (not mouse)
  UI_BLOCK_ENTER_OK  == return on Enter key

  this was not correct in the doc/interface_API.txt , which will be fixed.
2003-11-21 13:14:50 +00:00
Ton Roosendaal
71500a2df1 - fixed another oldie... displaylists for MBall was generated FAR too often.
even for each redraw! Now its all smooth & fast again.

  introduced new kernel API call: int is_basis_mball(ob), this provides a
  quick check of the object is the actual basis for the displaylist and
  polygonization.
2003-11-21 12:30:15 +00:00
Chris Want
94496ca80f Fixed it so that "Parent Armature->Name Groups" puts the mesh in a state
that is ready for weight paint.
2003-11-21 04:07:45 +00:00
Martin Poirier
b70171c5bc newline conversion speed up by intrr 2003-11-20 22:22:48 +00:00
Ton Roosendaal
711af5cf5e - fixed an oldie! When using a spotlamp in 'potato' textured drawmode, the
normal opengl light didnt work proper anymore.
2003-11-20 17:51:37 +00:00
Ton Roosendaal
763cf2d69f - bug fix: when moving an object to not-visible layer, and selecting an
other object, the moved one was drawn in 3d window...
  Hopefully the last error caused be me cleaning up frontbuffer draw... :/
2003-11-20 17:41:46 +00:00
Martin Poirier
81d309e68e Fix for bug #238 and #435 (same bug difference effect).
I've tested pretty much everything, but please proof read the code, the fonction calls and IFDEF could be used elsewhere (especially the IFDEFs, I wasn't sure if I had to enclose the whole function or whatnot.
2003-11-20 01:54:34 +00:00
Ton Roosendaal
487fd93a2b - bug fix: subdiv level 0 and drawtype 'optim' caused mesh not drawing
in editmode...
2003-11-19 22:38:19 +00:00
Ton Roosendaal
f83a7dfc11 - fixed warning by not prototyping something a couple of commits ago... 2003-11-19 22:13:53 +00:00
Ton Roosendaal
4a5ae4a55f Fix for undo... it didn't do the UV coords (tface) nor the vertexpaint
colors. This because of the pretty weird (ab)use of load & make editmesh...

For each added undo step, the load_editmesh was fed with an empty mesh
to assign data to, without knowledge of what was in the original mesh.
That way UV and color data got lost.

Solved it in 2 steps:

1. removing the ->tface pointer from EditVlak, and make TFace a builtin
  struct inside EditVlak. This didnt cost much extra mem, since it already
  stored UV and color. This enabled some pretty cleanup in editmesh.c as
  well, storing tface pointers was cumbersome.
2. for each undo step, it then generates always a tface and mcol block to
  link to the undo Mesh.
  Even when it wasn't in the actual Mesh, at exit editmode the original
  Mesh is used as reference anyway, and undo-meshes are freed correctly.

The enormous commit is because I had to change the BLI_editVert.h file, and
found it was included in about every file unnecessary. I removed it there.
ALso found out that subsurf has code ready (unfinished) to make UV coords for
the displaylist in EditMode as well, nice to know for later...
2003-11-19 22:00:14 +00:00
Ton Roosendaal
4347b1a752 - fix: keys couldnt have more than 32k vertices. Just made a short into an
int in the key struct.
  warn: this recompiles dna!
2003-11-19 17:07:17 +00:00
Alexander Ewering
79f753531e - Fixes hidden vertices for undo. They are now stored in mvert->flag and
thus also preserved over exiting/entering editmode (is this desirable?)
  Can be turned off easily ...

- "Half-fixes" lost UV info problem with undo. I couldn't get it to
  crash or lose UV info anymore, but we now have a memory leak (me->tface).

  Ton, please check this!
2003-11-19 16:21:37 +00:00
Ton Roosendaal
ffd7fc9005 - fixed reported bug with constraints... somehow someone managed to save
a follow-path constraint in 2.28c without data assigned.
  this patch checks for proper data in a constraint, if not available
  it will turn the type into CONSTRAINT_TYPE_NULL
- i will forward the demo file to theeth for further check
2003-11-19 15:20:18 +00:00
Ton Roosendaal
ab9e6f69a0 - fixed bug caused by changing order of drawing buttons in material panel 2
the 'OB' and 'ME' buttons were not visible in all situations anymore...
2003-11-19 12:43:21 +00:00
Ton Roosendaal
76766ed969 - further small alignment errors...
- 'unlink set' button from f10 menu only draws when set is linked
- 'copy sound' in sound buttons only draws when sound is available
2003-11-18 21:16:24 +00:00
Roel Spruit
c6b7148487 While I'm at it, loopselect/cut also didn't update vertexcount :) 2003-11-18 14:26:42 +00:00
Roel Spruit
b043165fb6 edge select: bad selected vert count (fixes bug #681) 2003-11-18 14:18:00 +00:00
Ton Roosendaal
a140c07795 - changed evaluation order for drawing pulldowns in 3d header. In editmode
it didnt show the 'Mesh' options when 'vertex paint' mode was still on.
2003-11-18 11:52:28 +00:00
Ton Roosendaal
bc22e2242a - removed temporal patch from myortho2() in mywindow.c, and changed
all calls to ortho2 with correctness offset of 0.375 instead of 0.5.
  this efficiently solves bug in drawing UV lines as reported.

cvS: ----------------------------------------------------------------------
2003-11-18 11:22:17 +00:00
Ton Roosendaal
683b51fe83 - added color for constraint dashed line 2003-11-17 22:33:11 +00:00
Ton Roosendaal
0894c8e3e2 - fix: vpaint and weightpaint and texturepaint allow drawmode wire-extra
again.
2003-11-17 21:10:18 +00:00
Ton Roosendaal
3e938a9223 - bug fix: moved vertex group buttons to first panel (F9 editing buts).
these buttons should be available outside editmode as well.
- fix: changed order of tools in f9 mesh a bit... it was totally random
- fix: fileselect draw error; text sometimes draws over outer border

cvs: ----------------------------------------------------------------------
2003-11-17 20:20:14 +00:00
Joseph Gilbert
f2a9e34346 - added vgrouping methods for renaming headers 2003-11-17 17:12:58 +00:00
Ton Roosendaal
b5e6b84dc8 - finished some minor drawing stuff which i couldnt complete last friday:
(related to rounded theme)
  - layer buttons in view3d header grouped
  - outline colour now blends darker with respect to background (better
    visibility on dark backgrounds)
  - added some align calls to user settings menu

Now back to real bugs!
2003-11-17 14:31:25 +00:00
Ton Roosendaal
0af974d757 - bug fixes:
- "Crop and Anim" panel had wrong name... now "Anim and Movie"
  - this panel didnt draw buttons always, should be for 'anim option' (which
    is different from 'movie' option!
  - added call to re-align the panels each time a new screen is set (also
    after file read) to make sure new panels (or with new name) are properly
    initialized
  - fixed drawing error in nurbs buttons
2003-11-17 12:11:42 +00:00
Joseph Gilbert
61f203c80b - added vgrouping methods for renaming to documentation 2003-11-17 07:22:29 +00:00
Joseph Gilbert
33da577d34 - added vgrouping methods for renaming a vertex group and returning all vgroup names 2003-11-17 07:13:27 +00:00
Martin Poirier
b43e74a1db Fixed the fix for constraint loop :P
Everything works properly now
2003-11-17 02:25:33 +00:00
Chris Want
12a5ea3e67 Fix for bf-bug #389 (endless loop when creating constraint) 2003-11-16 21:29:12 +00:00
Martin Poirier
dc4e0d2295 Fixed the material window crash
Thanks to Meino from the mailing list and MadProf
2003-11-16 21:02:45 +00:00
Martin Poirier
4bdf7cfcf0 delimiters are you friends
fixed a silly bug with merge and mirror
2003-11-16 00:31:27 +00:00
Michel Selten
ad9e1e44d8 Fixed compiler errors. The new function uiBlockBeginAlign() has been updated to
be smarter. The result was only 1 argument instead of 2 were needed.
Unfortunately, not all calls to uiBlockBeginAlign() were updated accordingly.
2003-11-15 18:40:51 +00:00
Ton Roosendaal
d8f8605098 - Bug fix: at osx, default AA font couldnt be written in .b.blend
(unless you manually install font)
- Bug fix: string for AA font was only 64 chars... made 256.

- Changed API for buttons aligning... it now detects automatic what rows
  are, or collums, and aligns buttons. This makes call easier:
  uiBlockBeginAlign(block);
  ... defBut....
  uiBlockEndAlign(block);
  Only works when you provide buttons in row order!
- made sure only 'rounded' theme uses this align stuff
- still work in progress.. I commit now because I leave to denmark for 2 days!

http://www.blender.org/bf/rt.jpg  <- now also groups with rows+collums
2003-11-14 15:49:26 +00:00
Ton Roosendaal
4d1b1545f2 - fixed 2 drawing errors because of new align code.
thanks ztonzy for report!
2003-11-14 12:32:32 +00:00
Martin Poirier
dab8b69cd8 Fixed edge select shift modifier 2003-11-14 12:29:05 +00:00
Martin Poirier
7fc95b35c5 Fixed typing mode for Warp 2003-11-14 01:34:13 +00:00
Joseph Gilbert
61b3a9f8e1 - Lattice documentation 2003-11-14 01:10:59 +00:00
Martin Poirier
b8e086981d Projectfile update for the Lattice module 2003-11-14 01:02:18 +00:00