blender.git
15 years agoAdded the Solid 3.5 sources to the blender source tree.
Michel Selten [Sat, 6 Dec 2003 19:02:42 +0000 (19:02 +0000)]
Added the Solid 3.5 sources to the blender source tree.
This is a direct copy from the CD-ROM contents except for the generated
libraries for the Windows platform. If needed, I can add those later on.
(Those take up over 800 kb).
All files, including license files, documentation, examples and sources are
committed.

15 years agoProjectfile fix for new png.c file
Martin Poirier [Thu, 4 Dec 2003 23:45:47 +0000 (23:45 +0000)]
Projectfile fix for new png.c file

15 years agoThis looks like a lot but its a few small changes.
Kent Mein [Thu, 4 Dec 2003 18:18:05 +0000 (18:18 +0000)]
This looks like a lot but its a few small changes.

Summary: standardized imageformat functions(make function names similar, and
parameters in same order where relavant), small code cleanups, and
added a description of how to add an image format to blender.

Kent

Specifics:
merged png_decode.c and png_encode.c to png.c and cleaned function calls.

fixed some spacing in IMB_imbuf_types.h

casting cleanups:
        intern/amiga.c
        intern/ham.c
        intern/iris.c

Modified switch statements to have a default type to insure values are set:
        intern/antialias.c

Initalization of some vars and make types similar.
        intern/bitplanes.c

cleaned function calls, and changed if else to if's with return:
        intern/jpeg.c

added {}'s in multidemensional arrays.
        intern/matrix.h

Made a little cleaner to read, and matched above changes.
        intern/readimage.c
        intern/writeimage.c

15 years ago- added wire color theme usage for drawing edges in editmode.
Ton Roosendaal [Thu, 4 Dec 2003 11:37:39 +0000 (11:37 +0000)]
- added wire color theme usage for drawing edges in editmode.

15 years ago- fixed matrix conversion to make rgb -> bw images.
Ton Roosendaal [Wed, 3 Dec 2003 16:13:58 +0000 (16:13 +0000)]
- fixed matrix conversion to make rgb -> bw images.
  somehow this was mixed up, or forgotten to fix when endian issues were
  solved in the past (1998)...
  To check: red color should be 30% grey, blue 10%. This was switched,
  making B&W images look unnatural.

15 years ago- another oldie! Bug 475, which was wrongly categorized by me as OpenGL
Ton Roosendaal [Wed, 3 Dec 2003 15:44:11 +0000 (15:44 +0000)]
- another oldie! Bug 475, which was wrongly categorized by me as OpenGL
  error... Jesterking report helped me finding the mistake! We found out
  that pressing F12 while rendering is in progress, crashes...

Hi Yamyam,

I beg you to forgive me! Totally misread the report... the error was only
in pressing F12 *during* rendering, it even restarts a render then. This
happens always, no matter what is being rendered.

I found the code for renderwindow doesn't use queues to store events, like
in the rest of Blender, but immediately executes incoming events. This
means you can even press ZKEY (zoom) or F11 (hide) while rendering.

In CVS I've committed a patch that checks if Blender renders, before
allowing to execute the F12 event. Also now blocked is F3 (!) during render.
The other options (zoom, push window) still work.

-Ton-

15 years ago- fixed ridiculous old bug that didn't allow weightpainting with the
Ton Roosendaal [Wed, 3 Dec 2003 15:39:19 +0000 (15:39 +0000)]
- fixed ridiculous old bug that didn't allow weightpainting with the
  option "Area" in paint buttons set.
  Apparently reevan forgot to check on some old vertexpaint globals
  hanging around, preventing the routine from sampling the backbuffer.

  Now weightpaint works identical to vertexpaint for 'area' or 'no area'.

15 years ago- fixed vertexpaint and weightpaint, which stopped working because of v2.31a
Ton Roosendaal [Tue, 2 Dec 2003 18:39:32 +0000 (18:39 +0000)]
- fixed vertexpaint and weightpaint, which stopped working because of
  previous fix for Transform Panel...
  the convention that 3d window has to leave in 2d ortho mode also applies
  on backbuffer now, which left painting routine confused.
  A single call to persp(PERSP_VIEW) fixes this.

15 years ago- new splash for 2.31a.
Ton Roosendaal [Tue, 2 Dec 2003 15:09:35 +0000 (15:09 +0000)]
- new splash for 2.31a.
  thanks Matt!

15 years ago- upped version to 2.31a
Ton Roosendaal [Tue, 2 Dec 2003 14:30:58 +0000 (14:30 +0000)]
- upped version to 2.31a

15 years agoFixed constline camera grab
Martin Poirier [Tue, 2 Dec 2003 00:19:08 +0000 (00:19 +0000)]
Fixed constline camera grab

There's a bug left with local axis constraints, but it's only a minor annoyance and fixing it would take more time that I can give (finals at the U you know...)

Also deleted some vestige of an old feature that was disabled.

15 years agoFixed FollowPath flag annoyance
Martin Poirier [Tue, 2 Dec 2003 00:04:38 +0000 (00:04 +0000)]
Fixed FollowPath flag annoyance

15 years agoNathan Letwory's patch for bug #424 const errors kept MSVC7 projectfiles from compiling.
Roel Spruit [Mon, 1 Dec 2003 15:01:20 +0000 (15:01 +0000)]
Nathan Letwory's patch for bug #424 const errors kept MSVC7 projectfiles from compiling.

15 years agoNathan Letwory's patch for Bug #458 (Fileselect bug)
Roel Spruit [Mon, 1 Dec 2003 14:27:06 +0000 (14:27 +0000)]
Nathan Letwory's patch for Bug #458 (Fileselect bug)

15 years ago- added fix done for manual designer: when you want to make screenshot with
Ton Roosendaal [Mon, 1 Dec 2003 13:13:43 +0000 (13:13 +0000)]
- added fix done for manual designer: when you want to make screenshot with
  a pulldown or popup menu in it, press (alt+)ctrl+f3 while the menu is
  visible, ESC, press (alt+)ctrl+f3 again.
  Note the (alt+) is for OSX users only.

15 years ago- fix for reported error in drawing 3d window buttons Panel when you have
Ton Roosendaal [Mon, 1 Dec 2003 13:01:18 +0000 (13:01 +0000)]
- fix for reported error in drawing 3d window buttons Panel when you have
  VertexPaint or FaceSelect mode on.
  The error was caused by not resetting to 2d buttons matrix after drawing
  the color codes for selection in backbuffer.

15 years ago- bug fix: for OSX using ctrl or alt + f12 didn't render anymore. this is
Ton Roosendaal [Mon, 1 Dec 2003 11:58:11 +0000 (11:58 +0000)]
- bug fix: for OSX using ctrl or alt + f12 didn't render anymore. this is
  because some macs eject a cdrom then... ahem!

15 years ago- fixed type in printf (radiostity!)
Ton Roosendaal [Mon, 1 Dec 2003 10:37:37 +0000 (10:37 +0000)]
- fixed type in printf (radiostity!)

15 years ago- added initializers for scaling button panels in view3d and ipo...
Ton Roosendaal [Sun, 30 Nov 2003 22:29:54 +0000 (22:29 +0000)]
- added initializers for scaling button panels in view3d and ipo...
  this was never done because of file read do_versions() did it!
  but creating an ipowin where never was one before showed error.

15 years ago- fix for layer buttons, now button rows type TOGR accept input based at
Ton Roosendaal [Sun, 30 Nov 2003 19:18:08 +0000 (19:18 +0000)]
- fix for layer buttons, now button rows type TOGR accept input based at
  actual bit value, and not order of creation.
  it is the only location in Blender where this is used... so!

15 years ago- bug #742 v2.31
Ton Roosendaal [Fri, 28 Nov 2003 21:09:41 +0000 (21:09 +0000)]
- bug #742
  autosmooth (F9) was always on, when material Radio was set... should only
  be done when Radio render was on too.

15 years ago- ARGH! breaking the cvs tag for 2.31... but this a true crash which should
Ton Roosendaal [Fri, 28 Nov 2003 20:45:11 +0000 (20:45 +0000)]
- ARGH! breaking the cvs tag for 2.31... but this a true crash which should
  have been fixed now we know it.

  pressing CTRL+1,2,3,4 was meant to set subdivision levels, but it read
  the active pointer without it checking for NULL... tsk!

15 years ago- last minute crash, reported by aphex' testing:
Ton Roosendaal [Thu, 27 Nov 2003 23:41:54 +0000 (23:41 +0000)]
- last minute crash, reported by aphex' testing:
  when removing header from buttons window, the previewrender didnt show
  or crashes.
  was caused by relying to an evil global pointer 'lockpoin' which was only
  set in headerbuttons...

15 years ago- while i am committing: small button aligning arror for 'separate textures'
Ton Roosendaal [Thu, 27 Nov 2003 23:34:52 +0000 (23:34 +0000)]
- while i am committing: small button aligning arror for 'separate textures'
  in F5 menu.

15 years ago- forgot a define...
Ton Roosendaal [Thu, 27 Nov 2003 10:22:13 +0000 (10:22 +0000)]
- forgot a define...

15 years ago2.31 splash screen
Matt Ebb [Thu, 27 Nov 2003 02:14:47 +0000 (02:14 +0000)]
2.31 splash screen

15 years ago- upped VERSION file :)
Ton Roosendaal [Wed, 26 Nov 2003 22:29:33 +0000 (22:29 +0000)]
- upped VERSION file :)

15 years ago- turned the decimator (F9) button into a normal number button. the slider
Ton Roosendaal [Wed, 26 Nov 2003 22:14:51 +0000 (22:14 +0000)]
- turned the decimator (F9) button into a normal number button. the slider
  was too small to display the number in it (amount of vertices). Also the
  range can be too large to make the slider display useful info.
  direct reason: mesh with 1 vertex made the slider draw corrupt.

15 years ago- bug fix #732
Ton Roosendaal [Wed, 26 Nov 2003 21:54:33 +0000 (21:54 +0000)]
- bug fix #732
  when you set halo, and star, then disable halo, the texface flag was set.
  this is because both values use the same bit in the flag <blush>

  solved by clearing the 'star' flag when you disable halo.
  Not perfect, but at least it looks OK. :)

15 years ago- minor change in .b.blend, to make sure a small blender start window
Ton Roosendaal [Wed, 26 Nov 2003 21:19:22 +0000 (21:19 +0000)]
- minor change in .b.blend, to make sure a small blender start window
  (tested 700 and 800 pix high) also displays all buttons in first screen.

15 years ago- changed wording of three menu items in theme menu, to match the window-
Ton Roosendaal [Wed, 26 Nov 2003 21:13:41 +0000 (21:13 +0000)]
- changed wording of three menu items in theme menu, to match the window-
  type pulldown in all headers

15 years ago- new .b.blend
Ton Roosendaal [Wed, 26 Nov 2003 17:48:31 +0000 (17:48 +0000)]
- new .b.blend
  - no start 4 split anymore, split 3d win in 3rd screen instead
  - print of name active object in 3d window
  - added a theme in the file, for manual demo
  - no scrub/sync set
  - removed text files
  - auto save on (per 5 minutes)
  - no standard osa rendering
  - and i might have forgotten some
All for getting a manual compatible version. but the 4 split in start for
2.30 release caused quite some annoyed reactions.

15 years agoUpdated Python documentation for the Texture module. Done by Alex.
Michel Selten [Wed, 26 Nov 2003 17:35:29 +0000 (17:35 +0000)]
Updated Python documentation for the Texture module. Done by Alex.

15 years ago- version upped to 2.31
Ton Roosendaal [Wed, 26 Nov 2003 17:33:51 +0000 (17:33 +0000)]
- version upped to 2.31

15 years agoWhen no text file is open in the text editor, ALT-O did not work.
Michel Selten [Tue, 25 Nov 2003 21:38:37 +0000 (21:38 +0000)]
When no text file is open in the text editor, ALT-O did not work.
Fixed it.
We really should look at the entire event system there for the key selections.
Can be cleaned up a bit - not important right now.

15 years agoDouglas Bischoff's Fix for Plugins on OSX.
Kent Mein [Tue, 25 Nov 2003 20:10:06 +0000 (20:10 +0000)]
Douglas Bischoff's Fix for Plugins on OSX.

Kent

15 years ago- removed an old optimization line from code, which caused stenciling
Ton Roosendaal [Tue, 25 Nov 2003 18:45:05 +0000 (18:45 +0000)]
- removed an old optimization line from code, which caused stenciling
  with multiple bump-mapping channels not to work

15 years ago- forgot to do this... belongs to commit with text:
Ton Roosendaal [Tue, 25 Nov 2003 18:14:00 +0000 (18:14 +0000)]
- forgot to do this... belongs to commit with text:

  bug fix: in background render, the default builtin font was not
  activated for rendering when other fonts were packed too.

15 years ago- bug fix: blender didn't rename temp save file to quit.blend at quit.
Ton Roosendaal [Tue, 25 Nov 2003 17:36:37 +0000 (17:36 +0000)]
- bug fix: blender didn't rename temp save file to quit.blend at quit.
  also reported on linux...

15 years ago- the weird OB and ME buttons in 2nd Panel in MaterialButtons didnt work
Ton Roosendaal [Tue, 25 Nov 2003 16:48:55 +0000 (16:48 +0000)]
- the weird OB and ME buttons in 2nd Panel in MaterialButtons didnt work
  properly. Also the "1 Mat 1" buttons didnt display in all situations.

15 years agoAdded 2 tooltips and fixed the tooltips for stucci Wall In/Wall Out
Kent Mein [Tue, 25 Nov 2003 15:29:20 +0000 (15:29 +0000)]
Added 2 tooltips and fixed the tooltips for stucci Wall In/Wall Out

Kent

15 years ago- moved do_versions stuff for 2.30 release, to also check 2.30 files.
Ton Roosendaal [Tue, 25 Nov 2003 13:44:46 +0000 (13:44 +0000)]
- moved do_versions stuff for 2.30 release, to also check 2.30 files.
  this is safe initialization only.
  based at report from madprof.. he had a 2.30 file without this
  data correctly initialized... but how it happens? tuhopuu files?

  anyhoo, we might think of splitting do_versions in 2 parts:
  1. do_versions initialization of old variables that changed
     like physics properties that need to be scaled or so
  2. do_init for newly created variables that are not allowed to be zero,
     this can safely be done for each file

15 years agoFixed typing mode in resize to allow scaling to 0.0
Martin Poirier [Mon, 24 Nov 2003 23:18:24 +0000 (23:18 +0000)]
Fixed typing mode in resize to allow scaling to 0.0

15 years agoThe debug target was erroneously removed, put it back.
Wouter van Heyst [Mon, 24 Nov 2003 15:42:46 +0000 (15:42 +0000)]
The debug target was erroneously removed, put it back.

Fixes build failure reported by ztonzy

15 years agoBPython: small update to Types.c and the docs, to finish welcoming the new modules.
Willian Padovani Germano [Mon, 24 Nov 2003 03:47:49 +0000 (03:47 +0000)]
BPython: small update to Types.c and the docs, to finish welcoming the new modules.

15 years ago- bug fix: in background render, the default builtin font was not
Ton Roosendaal [Sun, 23 Nov 2003 23:51:18 +0000 (23:51 +0000)]
- bug fix: in background render, the default builtin font was not
  activated for rendering when other fonts were packed too.

15 years ago- bug fix: colorband color sliders didnt update the colorband
Ton Roosendaal [Sun, 23 Nov 2003 23:33:19 +0000 (23:33 +0000)]
- bug fix: colorband color sliders didnt update the colorband
- bug fix: enter editmode from faceselect correctly selects vertices

15 years ago- another hack!
Ton Roosendaal [Sun, 23 Nov 2003 23:04:35 +0000 (23:04 +0000)]
- another hack!
  well... probably OK, got it from a python mailing list.

  When starting from commandline, the window doesnt pop to the front. this
  was really bad for the play function in blender, which opens a new blender
  thread.
  solved with SetFrontProcess()

15 years ago- ALT+N in new texteditor (no text block) will add new text now.
Ton Roosendaal [Sun, 23 Nov 2003 21:31:35 +0000 (21:31 +0000)]
- ALT+N in new texteditor (no text block) will add new text now.

15 years agoFixed two minor warnings
Jacques Guignot [Sun, 23 Nov 2003 21:25:55 +0000 (21:25 +0000)]
Fixed two minor warnings

15 years agoNo line for constraint without target
Martin Poirier [Sun, 23 Nov 2003 20:28:35 +0000 (20:28 +0000)]
No line for constraint without target

Code notes:

The constraint_has_target can be used to test if a constraint has a target at all.

15 years agoProjectfiles fix for new Python module
Martin Poirier [Sun, 23 Nov 2003 20:24:23 +0000 (20:24 +0000)]
Projectfiles fix for new Python module

15 years ago- performance upgrade with the vgroup methods
Joseph Gilbert [Sun, 23 Nov 2003 19:18:04 +0000 (19:18 +0000)]
- performance upgrade with the vgroup methods

15 years ago- fixed glrects and emboss for constraint drawing again...
Ton Roosendaal [Sun, 23 Nov 2003 19:11:04 +0000 (19:11 +0000)]
- fixed glrects and emboss for constraint drawing again...
  there's somewhere something hanging in this code... a weird difference
  in how buttons draw and rect draws?

15 years agoBPython:
Willian Padovani Germano [Sun, 23 Nov 2003 17:58:26 +0000 (17:58 +0000)]
BPython:
-- Blender.Texture doc file, also by Alex Mole.

Three commits where one was enough! I feel stupid!

15 years agoBPython:
Willian Padovani Germano [Sun, 23 Nov 2003 17:46:06 +0000 (17:46 +0000)]
BPython:
-- New module: Blender.Texture, by new developer Alex Mole.
Most of it is done: guess only Ipo, envmap, colorband and plugin were not implemented yet.

15 years agoFixed a crash that would happen if the user tried to faceloop-cut starting at an...
Roel Spruit [Sun, 23 Nov 2003 16:59:54 +0000 (16:59 +0000)]
Fixed a crash that would happen if the user tried to faceloop-cut starting at an edge that didn't belong to any face.

15 years agoAdded all necessary BPY_extern.h include files to the .c files.
Michel Selten [Sun, 23 Nov 2003 14:28:46 +0000 (14:28 +0000)]
Added all necessary BPY_extern.h include files to the .c files.
Updated the Make environment to point to the correct location. The include
paths were still pointing to source/blender/bpython/include while it should be
source/blender/python.
I did not encounter the build problems because I'm always working with the
autoconf build environment.

15 years agoReplaced all references to ..\..\source\blender\bpython\include with ..\..\source...
Roel Spruit [Sun, 23 Nov 2003 14:02:54 +0000 (14:02 +0000)]
Replaced all references to ..\..\source\blender\bpython\include with ..\..\source\blender\python. this because of the old python removal.

15 years ago- fix: switching main Theme didn't update button drawtype for info buttons
Ton Roosendaal [Sun, 23 Nov 2003 13:48:12 +0000 (13:48 +0000)]
- fix: switching main Theme didn't update button drawtype for info buttons

15 years ago- added to Constraint panel the 'Active Bone' or 'Active Object', like
Ton Roosendaal [Sun, 23 Nov 2003 12:22:59 +0000 (12:22 +0000)]
- 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.

15 years agoseveral warning fixes, for a bug-free *and* warnings-free 2.31 !
Jacques Guignot [Sat, 22 Nov 2003 23:30:40 +0000 (23:30 +0000)]
several warning fixes, for a bug-free *and* warnings-free 2.31 !
Just moved some declarations, nothing important.

15 years ago- added button aligning code for most other panels... still unfinished
Ton Roosendaal [Sat, 22 Nov 2003 22:22:16 +0000 (22:22 +0000)]
- added button aligning code for most other panels... still unfinished
  next step first is cleaning up design in panels itself.

15 years agoGot rid of many #include "BPY_extern.h"
Chris Want [Sat, 22 Nov 2003 20:21:59 +0000 (20:21 +0000)]
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.

15 years ago- this routine is going to be my waterloo!
Ton Roosendaal [Sat, 22 Nov 2003 18:38:53 +0000 (18:38 +0000)]
- this routine is going to be my waterloo!
  forgot to check null pointer...

15 years agoLast part of removing the old Python API implementation. Removed
Michel Selten [Sat, 22 Nov 2003 18:33:54 +0000 (18:33 +0000)]
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

15 years agoA couple of files I left in the intern/python dir needed to be removed as
Michel Selten [Sat, 22 Nov 2003 17:29:46 +0000 (17:29 +0000)]
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

15 years agoFirst action of removing the old Python API stuff from cvs. Removed the
Michel Selten [Sat, 22 Nov 2003 17:28:05 +0000 (17:28 +0000)]
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

15 years ago- added check before freeing a font pointer... dunno if its needed, but
Ton Roosendaal [Sat, 22 Nov 2003 16:59:54 +0000 (16:59 +0000)]
- 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!

15 years ago- made calloc for clear mverts in subsurf-mesh conversion
Ton Roosendaal [Fri, 21 Nov 2003 20:52:27 +0000 (20:52 +0000)]
- made calloc for clear mverts in subsurf-mesh conversion

15 years ago fix for description of UI_BLOCK_RET_1.
Ton Roosendaal [Fri, 21 Nov 2003 13:16:04 +0000 (13:16 +0000)]
 fix for description of UI_BLOCK_RET_1.

15 years ago- Fix: the MKEY 'movetolayer' option doesnt close anymore on numeric
Ton Roosendaal [Fri, 21 Nov 2003 13:14:50 +0000 (13:14 +0000)]
- 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.

15 years ago- fixed another oldie... displaylists for MBall was generated FAR too often.
Ton Roosendaal [Fri, 21 Nov 2003 12:30:15 +0000 (12:30 +0000)]
- 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.

15 years agoFixed it so that "Parent Armature->Name Groups" puts the mesh in a state
Chris Want [Fri, 21 Nov 2003 04:07:45 +0000 (04:07 +0000)]
Fixed it so that "Parent Armature->Name Groups" puts the mesh in a state
that is ready for weight paint.

15 years agonewline conversion speed up by intrr
Martin Poirier [Thu, 20 Nov 2003 22:22:48 +0000 (22:22 +0000)]
newline conversion speed up by intrr

15 years ago- fixed an oldie! When using a spotlamp in 'potato' textured drawmode, the
Ton Roosendaal [Thu, 20 Nov 2003 17:51:37 +0000 (17:51 +0000)]
- fixed an oldie! When using a spotlamp in 'potato' textured drawmode, the
  normal opengl light didnt work proper anymore.

15 years ago- bug fix: when moving an object to not-visible layer, and selecting an
Ton Roosendaal [Thu, 20 Nov 2003 17:41:46 +0000 (17:41 +0000)]
- 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... :/

15 years agoFix for bug #238 and #435 (same bug difference effect).
Martin Poirier [Thu, 20 Nov 2003 01:54:34 +0000 (01:54 +0000)]
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.

15 years ago- bug fix: subdiv level 0 and drawtype 'optim' caused mesh not drawing
Ton Roosendaal [Wed, 19 Nov 2003 22:38:19 +0000 (22:38 +0000)]
- bug fix: subdiv level 0 and drawtype 'optim' caused mesh not drawing
  in editmode...

15 years ago- fixed warning by not prototyping something a couple of commits ago...
Ton Roosendaal [Wed, 19 Nov 2003 22:13:53 +0000 (22:13 +0000)]
- fixed warning by not prototyping something a couple of commits ago...

15 years agoFix for undo... it didn't do the UV coords (tface) nor the vertexpaint
Ton Roosendaal [Wed, 19 Nov 2003 22:00:14 +0000 (22:00 +0000)]
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...

15 years ago- fix: keys couldnt have more than 32k vertices. Just made a short into an
Ton Roosendaal [Wed, 19 Nov 2003 17:07:17 +0000 (17:07 +0000)]
- fix: keys couldnt have more than 32k vertices. Just made a short into an
  int in the key struct.
  warn: this recompiles dna!

15 years ago- Fixes hidden vertices for undo. They are now stored in mvert->flag and
Alexander Ewering [Wed, 19 Nov 2003 16:21:37 +0000 (16:21 +0000)]
- 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!

15 years ago- fixed reported bug with constraints... somehow someone managed to save
Ton Roosendaal [Wed, 19 Nov 2003 15:20:18 +0000 (15:20 +0000)]
- 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

15 years ago- fixed bug caused by changing order of drawing buttons in material panel 2
Ton Roosendaal [Wed, 19 Nov 2003 12:43:21 +0000 (12:43 +0000)]
- 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...

15 years ago- further small alignment errors...
Ton Roosendaal [Tue, 18 Nov 2003 21:16:24 +0000 (21:16 +0000)]
- 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

15 years agoWhile I'm at it, loopselect/cut also didn't update vertexcount :)
Roel Spruit [Tue, 18 Nov 2003 14:26:42 +0000 (14:26 +0000)]
While I'm at it, loopselect/cut also didn't update vertexcount :)

15 years agoedge select: bad selected vert count (fixes bug #681)
Roel Spruit [Tue, 18 Nov 2003 14:18:00 +0000 (14:18 +0000)]
edge select: bad selected vert count (fixes bug #681)

15 years ago- changed evaluation order for drawing pulldowns in 3d header. In editmode
Ton Roosendaal [Tue, 18 Nov 2003 11:52:28 +0000 (11:52 +0000)]
- changed evaluation order for drawing pulldowns in 3d header. In editmode
  it didnt show the 'Mesh' options when 'vertex paint' mode was still on.

15 years ago- removed temporal patch from myortho2() in mywindow.c, and changed
Ton Roosendaal [Tue, 18 Nov 2003 11:22:17 +0000 (11:22 +0000)]
- 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: ----------------------------------------------------------------------

15 years ago- added color for constraint dashed line
Ton Roosendaal [Mon, 17 Nov 2003 22:33:11 +0000 (22:33 +0000)]
- added color for constraint dashed line

15 years ago- fix: vpaint and weightpaint and texturepaint allow drawmode wire-extra
Ton Roosendaal [Mon, 17 Nov 2003 21:10:18 +0000 (21:10 +0000)]
- fix: vpaint and weightpaint and texturepaint allow drawmode wire-extra
  again.

15 years ago- bug fix: moved vertex group buttons to first panel (F9 editing buts).
Ton Roosendaal [Mon, 17 Nov 2003 20:20:14 +0000 (20:20 +0000)]
- 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: ----------------------------------------------------------------------

15 years ago- added vgrouping methods for renaming headers
Joseph Gilbert [Mon, 17 Nov 2003 17:12:58 +0000 (17:12 +0000)]
- added vgrouping methods for renaming headers

15 years ago- finished some minor drawing stuff which i couldnt complete last friday:
Ton Roosendaal [Mon, 17 Nov 2003 14:31:25 +0000 (14:31 +0000)]
- 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!

15 years ago- bug fixes:
Ton Roosendaal [Mon, 17 Nov 2003 12:11:42 +0000 (12:11 +0000)]
- 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

15 years ago- added vgrouping methods for renaming to documentation
Joseph Gilbert [Mon, 17 Nov 2003 07:22:29 +0000 (07:22 +0000)]
- added vgrouping methods for renaming to documentation

15 years ago- added vgrouping methods for renaming a vertex group and returning all vgroup names
Joseph Gilbert [Mon, 17 Nov 2003 07:13:27 +0000 (07:13 +0000)]
- added vgrouping methods for renaming a vertex group and returning all vgroup names

15 years agoFixed the fix for constraint loop :P
Martin Poirier [Mon, 17 Nov 2003 02:25:33 +0000 (02:25 +0000)]
Fixed the fix for constraint loop :P

Everything works properly now

15 years agoFix for bf-bug #389 (endless loop when creating constraint)
Chris Want [Sun, 16 Nov 2003 21:29:12 +0000 (21:29 +0000)]
Fix for bf-bug #389 (endless loop when creating constraint)