Commit Graph

6237 Commits

Author SHA1 Message Date
3c1956f5cd Bugfix #4556
When a curve guide animates, it doesn't correctly work on dynamic particles.
This because the guides work on a fixed starting position (the birth of
particle) and then defines a full path for the entire particle. It is clear
this was only coded with static particles in mind...

Nevertheless, I've added a line of code to at least put the curve guide
on correct location for the moment a particle gets born.

Report moved to the todo tracker; this should be a spec for particle recode
2006-07-02 12:46:41 +00:00
e4354bbf12 Bugfix #4569
Global undo didn't restore correctly the camera in unlocked 3d views.
("Lock" icon option next to layer buttons)
2006-07-02 12:03:07 +00:00
e16df991ab Bug #4568
No fix... the Object "TimeOffset" option to work on own ipo doesn't work
at all, not since NaN days. Enabling it is easy, but might screw up a lot
of previous saved files.

I moved that report to the todo, for a make-over of the entire internal
timing system. Added tooltip in button this option doesn't work.
2006-07-02 11:47:27 +00:00
1673b56dd3 Bugfix #4565
Curves without bevel/extrude don't react to buttons to fill front/back.
That is coded that way, so added this info to the tooltip

Bug report #4566

Creases drawing became very awkward in commit in august last year. Flipped
the drawing order so the fat lines - denoting creases - are drawn first.
That way the value of crease is visible, as well as edge selection state.
2006-07-02 11:21:06 +00:00
7b07fcca91 Bugfix #4564
Environment mapping on channel "Mirror color" didn't support stencilling.
2006-07-02 10:42:29 +00:00
f2d80ee097 wasnt decref'ing items I got from PySequence_GetItem for PolyFill or ob.join() fixed and tested, memory dosent increse when used in a large loop. 2006-07-02 10:37:24 +00:00
ae59f05c85 Bugfix #4563
Wave Modifier defaulted to Y waves, even when both X and Y buttons were
disabled. That case isn't very useful, nevertheless... if buttons allows it
then it should just work!
2006-07-02 10:36:26 +00:00
9f6f44938e Bugfix #4562
Another thread render issue, now in Image texture, the 'repeat' value was
still a global... how did I think that would ever work? Just forgot about
that one I guess. :)
2006-07-02 10:30:48 +00:00
5e30fb119c Bugfix #4561
Sequence renders, calling scenes with compositing, didn't execute composite
correctly. Confusement caused by the rule that a "Render" handle has same
name as Scene, which gives conflict for the case when a Scene has
sequencing with Scene strips with its own scene in it.

The previous solution for that conflict caused composite not to work. This
commit solves that, but it is still hackish. Main reason is the still
bad global G.scene, in use by compositor.
2006-07-02 09:56:41 +00:00
9467a55d1a Fix: While checking on render stats timer, I found there was already stats
reserved for field and blur steps, but never used or printed.
2006-07-02 08:31:54 +00:00
fc1becdcd2 bug #4559
Render timers were called in the internal render loops (tile processor),
they still had to be moved to the outer loop, so they include fields/blur
or sequencer render timing correctly.
2006-07-02 08:15:16 +00:00
0cbb917e60 Bugfix #4558
Thread render error: a flag was stored in read-only data to indicate
whether top or bottom hemisphere of sky was rendered. That can't work
with tiles (but did work when scanlines were threads).
2006-07-02 07:59:42 +00:00
Stephen Swaney
1eb2724983 bugfix for #4533 Text3d.Get() fails in retrieving Text3d objects
The objects were returned properly, however the repr() method was
printing "" making it look like the Get() failed."
2006-07-01 16:59:10 +00:00
7809809e8a Added a scanfill wraper to Mathutils, allows you to fill polylines without using Meshes .fill() function.
Takes a list of polylines and returns a list of face index triplets.

Added this so using mesh.fill() could be avoided since it requires making an object, linking to the scene and cycling editmode for every NGon imported.
Since this is so close to release, It might be good if ken, willian or stivs takes a look at the function to make sure its ok. - Ran 100's of times for importing lightwave models but would be good to doublecheck.
2006-07-01 15:29:04 +00:00
2174b90307 added an example of getting the worldspace matrix of a bone 2006-07-01 12:03:44 +00:00
c4f8d550ad Bug #4469: fixed particle-object button tooltip 2006-07-01 11:38:26 +00:00
41b0a4a3ad Bug #4552
Added extra security for fill faces. This function is being used for
importing now too, and it gets called for quite weird fill cases...
nevertheless, it should not crash!
2006-07-01 10:02:26 +00:00
c33a8b65c0 Totally ancient error: Makefiles for OSX did not copy the scripts in
the right way for regular builds... only the 'make release' did it OK.
2006-07-01 09:40:13 +00:00
2c3f80477d Bug #4550
AO option "Use Distances" does not work for colored AO, only for "Plain".
I've added this info in tooltip, and added event that resets the color
option for AO when "Use Distances" pressed.
2006-06-30 19:29:57 +00:00
08921033e5 Bugfix #4545
In Editmode armature, the autocomplete for bone names used the bones from
the armature itself, not the edit data.

While fixing, also found out autocomplete for vertexgroup didnt work even.
2006-06-30 18:00:23 +00:00
8a6ead5f95 Bugfix #4544
Another fix in scanfill. A really old one... probably over 5 years.

Fill crashed when there were loose edges that were zero sized.
2006-06-30 16:07:50 +00:00
6a5f637338 Hooray! Finally found the dreaded "Opengl crash" the poor orange team
suffered for the entire movie. :)

It only happened when rendering large frames, using a lot of memory and
typically when you also use other software in meantime.

Reason: the main thread does the drawing updating, while rendering is
still continuing. When using Ztransp, there was a free buffer done
when possibly a draw could still be in progress. Only crashed when drawing
is slow... explaining why it only showed up in more complex cases.
2006-06-30 14:21:25 +00:00
b291939ccc Bugfix #4544
The 'edge fill' code failed on filling tiny small polygons. It has a limit
check for double points, which was hardcoded set to 0.0003.

That is (commented in code too) a weak part. Better would be to define a
bounding box first, and then derive the limit from that.

Further, the edge fill code uses blender EditEdge data, which fails when
the filling code removes edges. Certainly a topic to work on once, this
code is from the 80ies!
2006-06-30 12:38:38 +00:00
3ba91bce8e bug #4532, when field rendering enabled in blender (not supported in yafray),
blender doubles the aspect ratio. This is now taken into account.
2006-06-30 04:53:59 +00:00
2d172844ea Bug #4537
Added "Composite Preview" option in ImageWindow menu, with hotkey note.
2006-06-29 17:35:27 +00:00
c0e26bd3c0 Bugfix, IRC report:
Render option "Key Alpha" did not work yet.
2006-06-29 17:22:29 +00:00
d90b676bbb Bugfix #4530
Weightpaint fix.

Weight painting was recoded in 2.40 to support all features from vertex
paint. That code uses a 'soft' brush by default, which makes it impossible
to assign exact weight values on a single click (which used to be possible)

I've made that an option now, so you can disable it for single-click setting
of values on vertices within the brush (if 'use vertex distances' is
set, of course).
2006-06-29 13:46:39 +00:00
0735bf0ae1 Bugfix, own collection while testing:
- When saving image from Image Window, the extension was not added (with
  the option 'add extensions' set, in Scene buttons output panel)

- Same situation, after a save the data-block Image name was still the old
  one, also on 'reload' (in header and browsing menus). Confusing... so
  when saving image under new name now also renames the Image block.
2006-06-29 12:55:28 +00:00
5eefa4982b Bugfix #4534
Added pointer check to newly added code for this bugfix.
2006-06-29 10:55:31 +00:00
e5d4c789a1 Bugfix #4535
A proper check for the error "No Camera" on rendering can only be made
after a renderwindow was initialized. The error menu then shows in the
render window, which appears to not work OK in windows ATI (again!).

So; I've moved the test to before the renderwindow is activated, this is
not a test checking on the entire render pipeline (like Composite nodes or
sequence strips). In case more complex setups cannot render, an error is
printed in the console only.
2006-06-29 10:48:30 +00:00
7920197b38 Bugfix #4534
Small tweak in warning levels for buttons showing Library data.
- Material, panel "Links" did still allow to change some settings
- Material, panel "Texture" did not allow to view different channels
2006-06-29 10:11:14 +00:00
0f0c72718c Related to bugreport #4514
Debugging complex files with drivers is very hard... so I've added the
drivers now to show in Outliner too (under the Ipo).
Note that this works for Actions too, but only when the action is linked
to an Object directly.

(For a real diff you have check previous commit, I forgot to write a log
for that)
2006-06-29 09:53:54 +00:00
5dac88dc58 Bugfix from own testing:
In outliner, the icons sometimes were drawing too large or too small.
Same happened in NLA, Action, Image window etc. And it happened
for "International fonts" when set to use 'texture drawing'.

Reason: the API call for setting icon size BIF_icon_set_aspect() was not
used consistantly. Sometimes it was set, sometimes not. And even worse,
for every icon drawn in UI buttons, the icon lookup had to be done twice
because of the aspect function.

Solved it by removing this call, and adding a new function:
BIF_icon_draw_aspect()
The old BIF_icon_draw() call now draws with aspect 1.0 always. The icons
code already had optimal checking for changed sizes, zo a change in aspect
won't result in much cpu overhead. Plus it saves calling icons lookup code,
which will make it all a bit faster.

Andrea: I've added this aspect function a long while ago, I think you also
like it better how it is now? Please check!
2006-06-29 09:44:08 +00:00
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