Commit Graph

6204 Commits

Author SHA1 Message Date
dc458265e3 There are a few BPy functions that are documented to return a list but actually return tuples.
Blender.sys.splitext() raises an error if the path is longer then 80 chars. seems a bit short, noted this anyhow end added an example.
(hope its okay to do small doc corrections as I notice them.)
2006-06-29 06:04:21 +00:00
54694b0e64 slight change to the way the shift key works in fly mode. 2006-06-28 22:13:24 +00:00
a9b19c0ed1 Bugfix #4515
Another outliner + buttonswindow select error:
When clicking on lamp icon, the buttons window shows material, not lamp
buttons. Same happened for F5key btw, when buttons were showing world.

Also fixed: when switching to world buttons with F8key, the preview was
not re-rendered.
2006-06-28 20:06:48 +00:00
d173a0c8de Bugfix #4528
In compositor you can mix RGBA and Value buffers freely, but with one
exception... the Composite (output) node!

This solves a crash when connecting a Alpha socket to RGBA input in
Composite node.
2006-06-28 17:59:36 +00:00
7dc92c6b25 === warnings cleanup ===
added missing includes for undefined symbols in windows release build

warnings:
creator.c(490) : 'libtiff_init' undefined;
transform_manipulator.c(237) : 'EM_editselection_center' undefined;
src\transform_manipulator.c(241) : 'EM_editselection_normal' undefined;
transform_manipulator.c(242) : 'EM_editselection_plane' undefined;
\python\api2_2x\Object.c(3658) : 'get_local_bounds' undefined;
2006-06-28 17:46:46 +00:00
Ken Hughes
9ac6482f85 ===Python API===
Added reminder in addCurve() doc for how to determine valid Key IPO curve
names.
2006-06-28 17:27:07 +00:00
Ken Hughes
6d0b3bf2b7 Bugfix #4516: Allow ipo.addCurve() to create Key IPO curve for a
corresponding keyblock.
2006-06-28 17:13:39 +00:00
853cf24276 bugfix #4526
Depsgraph fix: the signal DAG_object_flush_update() should flush changes in
'data' to all object users of that data, not only in current scene.

Error was that switching scenes sometimes showed invalid derivedmesh data,
with bezerk drawing.
2006-06-28 14:29:57 +00:00
a3e49a23d7 Hurmf, the previous commit to solve proper 3D preview re-renders broke how
buttons preview work. :)

The initialize of the variable should be in the initialize code, not in the
freeing code, tsk tsk!
2006-06-28 14:14:52 +00:00
3d34bec6e4 Bugfix #4520
Boolean modifier allowed to be added after subsurf, but it doesn't support
that. Added "eModifierTypeFlag_RequiresOriginalData" flag to prevent this
from happening in UI.
2006-06-28 14:02:11 +00:00
5b4fa8a93e Fix for bug #4523:
- Crash on collapse with subsurf modifier. Cause was a missing DAG update
  when calling from the 3d view header menu.

  There really should be some standard way to place these countall, DAG
  update, redraw and undo push calls for editmesh tools, now they're in
  random places in the editmesh and UI code.
2006-06-28 13:49:11 +00:00
9ecffb4314 Campbell report:
Not clearing the value for 'parts rendered' caused 3d previewrender to
sometimes fail doing updates (when an escape happens during converting
render data).
2006-06-28 12:53:57 +00:00
1937162af5 EpyDoc/Object: Added notes and updated the makeDisplayList example for new modifier stuff. 2006-06-28 04:53:19 +00:00
816ed68db5 BPython:
Bug #4484:

http://projects.blender.org/tracker/?func=detail&aid=4484&group_id=9&atid=125

A recent update to Draw.c made the button attr setter function not exit
where it should for one of the cases, when new and old strings had
same length (code was missing a "return 0;" line in one of the if
cases). Should work fine now, I don't get the error under linux anymore.
Also saw in the same function that a py object could be created but
was not being decref'ed in two other 'if' cases.

Thanks elbarto for reporting the bug.
2006-06-27 17:51:11 +00:00
e9c1e40681 Bugfix #4505
Node Editor.
Fix for a fix: cleanup of abuse of uiBlock accidentally disabled the
feature that only makes Node buttons accessible when visible. This to
allow Nodes to overlap and properly used.
2006-06-27 16:54:24 +00:00
cfecc3b188 Dont fly in linked library data.
Changed Ctrl for upright into 2 toggles, X and Zkeys enable uprighting of the camera for each axis. Uprighting is also simplified.
2006-06-27 16:24:32 +00:00
Stephen Swaney
f747fa3a7f patch from Ralf Hölzemer (cheleb) for
#4499 Fix for build of blenderplayer on windows/mingw/scons

fixes some invalid cflags for gcc on windows/mingw/scons
-if sys.platform=='win32':
+if (sys.platform=='win32') & ( Environment().subst('$CC') != 'gcc'):
     cflags = ['/GR']

Patch looks ok but no mingw evironment here to test.
So mingw/sconsers to your testing stations.
We can always roll back!
2006-06-27 15:54:37 +00:00
31416d8d7e The tab clickable area was a bit off (10px or so when zoomed in) now its a lot better though not 100% perfect abt 2-3px out. 2006-06-27 13:37:16 +00:00
c93176260a Bugfix #4446
Wire render crashes in Linux (only!), but why? Using a calloc instead of
malloc fixes it, but that doesn't solve the real issue in the code.

I can only imagine that bsearch() in linux has a completely different
implementation...

Anyhoo; let's commit the calloc, at least then we got stable wire render!
2006-06-27 13:13:49 +00:00
9b8b816e6a fix #4503
Node Editor:
Using the popup menu of an unused vector input socket, used a callback
function that lacked proper checking for pointers.
2006-06-27 13:02:23 +00:00
ed631ecff6 Bugfix #4502
A subsequent hotkey press like F5 now cycles through the sub-context in
buttons. However, this should not happen when clicking on Material icon
in outliner!
2006-06-27 12:54:16 +00:00
56bcc1c3bb bug fix:
- added one more countall() function
  - undo works for (de)select all
  - added empty line at the end of editmball.c
  - added some comments
2006-06-27 12:36:09 +00:00
4d45723dd1 Bugfix #4497
When using Node Shaders, the OpenGL color (solid drawmode) in 3d window
was still using the base Material only. That's a bit counter-intuitive
yes... i've replaced this with a function that checks for the active
material node color. Not perfect, but at least interactive.
2006-06-27 12:19:32 +00:00
8d2f04ac74 Bugfix #4495
Another old only-shadow material error: spot lights with ray-shadow still
calculated shadow on faces that were pointing away from the lamp.
2006-06-27 12:01:33 +00:00
676d5d7b74 Fix for bug #4496
- Toolbox select menu in faceselect mode was calling object mode
  functions.
2006-06-27 11:55:33 +00:00
ea993ae989 Bugfix #4491
Sequencer: Image/Movie strips were printing in a 120 byte array, whilst
filepaths and names can go up to 240 now.
2006-06-27 11:35:47 +00:00
d87b12a865 Bugfix #4488
On file load, a Curve deformation was not initialized when it
wasn't in a visible layer.
2006-06-27 10:51:35 +00:00
2447ce7ee7 Bugfix #4475
Sequencer effect "Glow" did not work for float images (like render result).
Reason: threshold value for glow was still integer range.
2006-06-27 10:28:00 +00:00
f7c9c99877 Bugfixes from own collection:
- when renderwin exists, but not used for render, the ESC timer check still
  could return ESC event, due to missing flag clearing.
  (For example in sequencer, a scene strip did not update on frame advance)

- option 'single layer' set in combination with render "Do Sequence" didn't
  free the pushed layers.
2006-06-27 09:48:54 +00:00
605388b449 - Bug fix #1931
metacubes shouldn't disapear, when dx, dy, dz is too big, thanks
   arsouille for pointing at right part of code (it was the oldest bug in
   bug tracker)
2006-06-27 09:37:12 +00:00
ba7af683ae Version patch for 2.41 saved files that had unsupported passes set.
Settings for unsupported passes are cleared now.
2006-06-27 08:53:39 +00:00
b0193d3798 rolling at different views would change speed because the roll detection only realy detects if we're rolling, but not by how much.
Just clamped a max roll angle so you dont notice this.
2006-06-27 06:57:29 +00:00
2501386f2b Posemode was missing a "countall" call with pose mode select/deselect all. while adding this I noticed that lattice and metaballs were also missing countall() calls.
Added countall to metaball select, undo, duplicate (all the obvious places) - but its possible coultall() could be added to other functions especialy for metaballs.
2006-06-27 05:56:56 +00:00
e0aa1dd295 previous commit to editface made it impossible to leave faceSelect mode of the object was in an unseen layer.
Now you can leave faceSelect/UV mode while the object is hidden but not enter it. This is how editmode works.
Tweak to crease comparison.
2006-06-27 04:30:06 +00:00
0a8ac15e67 Added select similar crease to edge select groups. Needed this recently. 2006-06-27 03:56:46 +00:00
be2c208077 Fixed a bug where face flags could not be set because of the faces existing flags.
A problem with the current flag seting in Mesh is that Mesh needs to know of all possible flags or setting a flag can raise an error from the faces own unrecognezed flag.
also stopped the active face flag raising an error so pythoners can do face1.flag |= face2.flag without checking for active face flags. if the flag is a part of the arg its removed quietly.
Checked Mesh flags, face modes and edge flags, should all be ok now.
2006-06-27 02:49:55 +00:00
2670797e8a Plumiferos report:
The new Material "LightGroups" only worked with lamps in visible layers.
Now also lamps from the group that are not visible are included for
rendering, ensuring that a lightgroup always works on that material,
disregarding layer settings (unless lamp is type 'layer lamp').
2006-06-26 17:50:48 +00:00
1fa9af5dbc Plumiferos report: Ipo for material 'hardness' didn't go beyond 128
(Note; this value is stored in the curve when you make it, so you have
to remove the curve and insert it again...)
2006-06-26 16:57:44 +00:00
a6d6a35d3c Bugs #4488 and #4431
Sequencer:
Removing feature that allowed live updates of render progress while using
scene strips. In 2.41 and older this also happens invisible, and ESC from
it works now anyway.

Two reasons:
- it is quite annoying, especially on quit renders
- new 'render to window' conflicts too much with the sequencer window
  option that shows previews (in code as well as functional!)
2006-06-26 14:57:56 +00:00
d6e7eb27ed == Frameserver ==
Set SO_REUSEADDR on server-socket, since otherwise, frameserver will barf on
second start.
2006-06-26 13:22:55 +00:00
dbc7dbb2b9 Bugfix #4457
When faces (like in cubes) have exactly 90 degrees angles with other
faces, the check for a vertex-normal flip became random, caused by the
infamous bad floating point resolution.
Solved with including FLT_EPSILON in the check.

Also: minor optimize for readability and removed dutch function name
(contrpuntnorm -> check_vnormal)
2006-06-26 13:19:04 +00:00
17929dcab8 prev commit broke canceling a fly, works again. 2006-06-26 12:18:15 +00:00
1aab013bcc Bugfix #4483
Fix for bugfix! The code added to solve Driver lag should not be called
when Bones in Armature are drivers (only when Objects are drivers).
2006-06-26 11:29:33 +00:00
3ffdc5a83b Bugfix #4480
Material Node trees needed support in IpoWindow still, it was only showing
the Ipo for the (defunct) base material. Now it follows the active Node.
2006-06-26 11:01:09 +00:00
e5818d46ef Made fly mode use the camera when in camera view rather then jumping out of camera view for the actua flying as it did before. 2006-06-26 10:53:06 +00:00
f0604cffb7 == FFMPEG ==
Made internal ffmpeg-libraries link by explicitly specifying the archive-files.
(Thanks GSR for pointing this out)

Otherwise, blender always links to the system-libs.
2006-06-26 09:18:30 +00:00
098c73f441 Bugfix #4471
Using Weight/Vertex Paint, the current color was not reset, causing Object
name or axes to draw in random colors.
2006-06-26 08:16:16 +00:00
43c5590d7a Change the order of "if flag" checking so that weightpaint and vertex paint modes catch the UKey for undo before face select.
I was having to switch out of face select to undo then go back into face select mode.
FaseSelect+WeightPaint is very usefull, while wait painting its very unlikely youd want to be UV mapping faces.
Also Made all space.c's c++ comments into C style.
2006-06-26 06:59:59 +00:00
d5246c43de Object_join Was raising exceptions about being in background mode when it wasnt, this seems to fix it. memory corruption is an unlikely resion because its the first check. 2006-06-26 04:26:51 +00:00
1e9ce63b40 Fixed a bug where loose edges would raise an error when the FGON value was unset.
also added LOOSE to the EdgeFlags dict.
2006-06-26 04:14:12 +00:00