Commit Graph

21054 Commits

Author SHA1 Message Date
ab968fd6eb bugfix [#24690] Scene.frame_set() breaks pose restore
scene.frame_set() was sending out a frame change notifier which would update the scene loosing any un-keyed changes after a script ran.
for now use a window redraw notifier.
2010-11-17 17:38:56 +00:00
5f4f4e607b Bugfix #24767
Operator redo in 3D window now moves context to the main region,
makes knife cut work (and probably others)

Todo: this callback should be shared with other redo panels. On the
todo list.
2010-11-17 16:25:30 +00:00
c8bcabaf40 bugfix [#24685] Changing mode bypasses undo suppression
Editmode undo operator was using the operator OPTYPE_UNDO flag as well as its own EM_DO_UNDO option.

This gave 2 problems.
- python suppressed undos would fail (as in the report).
- Undo push was called twice on exiting editmode for no reason.

Use the operator undo in this case.
2010-11-17 15:16:49 +00:00
5a37333053 fixes from r33127 2010-11-17 14:36:19 +00:00
7bd944795f fix [#24762] Bezier Point Radius Cannot be Set When Curve is Created
this could be set in 2.4x, no reason to be readonly.
2010-11-17 12:59:59 +00:00
17aa5ae796 bugfix [#24766] Crasher on inserting keyframe on Bezier points [33126] 2010-11-17 12:52:56 +00:00
673ed8b50d Bugfix for previous commit.
Tweaked keymap for Graph Editor Ctrl-LMB so that the popup menu for displaying reports won't get dismissed immediately. Changing keymap here from KM_PRESS to KM_CLICK
2010-11-17 12:16:34 +00:00
f713761039 Keyframing Operators: Improved Error Messages
* Keyframing operators now use the reports system for displaying all its error messages. 
- The benefit of this is that users no longer need to check the console for error messages if keyframing fails.
- Unfortunately, reports are not currently viewable in any space/view in Blender, so...

* Added a temporary operator (UI_OT_reports_to_textblock), which can be accessed in the UI from the button which appears in place of the icon when more than one report exists. This dumps the current list of reports to a textblock "Recent Reports", from which they can be viewed. 

This isn't really nice, but at least we now have a way to view these again, which makes debugging some things a pain.

* Bugfix #24606 - when trying to add keyframes to F-Curves with F-Modifiers already which alter the curve significantly enough that the keyframes will have no effect, there are now warnings which aim to alleviate any confusion.
2010-11-17 12:02:36 +00:00
91217f117f should fix building with collada. 2010-11-17 11:09:07 +00:00
51dcbdde03 use 'const char *' by default with RNA functions except when the value is flagged as PROP_THICK_WRAP.
Also use const char in many other parts of blenders code.

Currently this gives warnings for setting operator id, label and description since these are an exception and allocated beforehand.
2010-11-17 09:45:45 +00:00
acc883da83 - move cmake file for python.
- move bpy_array.c to bpy_rna_array.c
- minor syntax changes
2010-11-17 07:22:20 +00:00
d0d16ecaee Fix #22645: Texture paint: soften tool does draw brushes
Disable projection painting for soften tools.

Also it looks like smear tools support projection in the code, so
enabled project paint menu for such tools
2010-11-17 06:30:06 +00:00
1bb98b4194 Adding monitoring for (approximate) VRAM used by textures. The information is currently only used in the profiling data of the BGE.
Here is a image of it in action:
http://www.pasteall.org/pic/show.php?id=6351

What it monitors:
  * VRAM used by textures created via bf_gpu and BL_Textures

What it does not monitor:
  * VRAM used by the Blender ui
  * VRAM used by 2d filters
  * VRAM allocated by the user via KX_Scene.pre_draw and KX_Scene.pre_draw
2010-11-17 05:28:25 +00:00
f791d74f10 writing single images from a render (own commit r33104), wasn't checking if the render was cancelled which would crash when writing the image.
also remove paranoid checks for writing TAGA, Other formats - BMP, JPEG, Iris don't do this.
2010-11-17 04:02:19 +00:00
02bbce8b6d bugfix [#24672] Bone.evaluate_envelope() is misleading
fix from Dan Eicher
2010-11-17 03:26:50 +00:00
d0f7184ab9 bugfix [#24761] minor bug - Modifiers don't "catches" Vertex Group renaming automatically 2010-11-17 03:21:50 +00:00
62f3bb8526 patch [#24760] Bezier handles update
from Dan Eicher (dna)

Made some edits to the patch because only the first spline was getting the updates.
also added path functions for splines and spline points (request from ZanQdo so splines can be keyframed).
2010-11-17 03:15:08 +00:00
2d6cf9ee6b the 'Multi' option was not being copied with the armature modifier. 2010-11-17 01:50:25 +00:00
98896d55d0 Fixing bad ui range in camera draw size 2010-11-17 01:15:31 +00:00
Nathan Letwory
12afa64de9 Fix [#24592] COLLADA imports only one special node per type per node
Reported and patched by Martijn Berger
2010-11-16 23:18:17 +00:00
Nathan Letwory
e2b3ff5024 Apply patch [#24722] COLLADA exporter: handle instancing
Submitted by Wenzel Jakob

Patch adds handling of linked meshes: instead of generating separate geometry objects, use instances.
2010-11-16 22:27:31 +00:00
b1b02b7a5e bugfix [#24509] UV/Image Editor: selected elements move not as specified 2010-11-16 17:37:26 +00:00
fe2df7849e Bugfix #23677
Very old bug: Material/Render: the "filter" option for transparent
absorption also works for alpha==0, but in that case another part
of render code just didn't add the faces in render list.
2010-11-16 17:10:39 +00:00
c658141fad Fix for [#24750] Particles draw percentage setting is not working in No Physics mode 2010-11-16 16:56:21 +00:00
303646fbd4 Fix for [#24706] 2.55 beta Hair now only rendering small fuzzy blob 2010-11-16 16:39:35 +00:00
e60393b8a8 option to immediately write single render to a file added for OpenGL render. 2010-11-16 15:15:20 +00:00
1e245cc589 option to write images to a files on single frame renders, this isn't accessed by the UI at the moment, but could eventually be used for saving test-renders.
The main reason to have this is so renders can be scripted to write to a specific file without having to do annoying tricks like set a dummy start/end frame range, render an animation and work out the current frame image will be written to, then rename after rendering.

Also made some 'char *' args into 'const char *'
2010-11-16 14:40:46 +00:00
2153c663be Bug #22585
Using texture nodes for displacement crashes, a conflict between using
nodes in render and for displacement at same time. Code simply disables
texture nodes for displacement for now, until we have better handling for it.
(on our long todo)
2010-11-16 13:41:39 +00:00
3ad21a8b4c Curve's UI minor fix:
- "Use Deformed" replaced back with "Fill Deformed"
- Use a bit more informative tooltip for this option
2010-11-16 13:25:21 +00:00
ca95a1d1ad edits to image save operator, no functional changes.
- don't rename the image when saving (problematic if the image is used with linked libraries)
- file writing and path updating was duplicated for multilayer images.
2010-11-16 13:08:24 +00:00
a58dcca5de Removing unnecesary print "draw swap exchange" 2010-11-16 12:29:30 +00:00
2de1c1fe1b Fixed wrong rna name for the old "UV Orco" option.
It was called "map on length", but it actually makes the UV
values of curves/nurbs to become used as "Generated" texture 
map input.

Sorry; this might break own local UI py script saves... :)
2010-11-16 12:10:57 +00:00
34c67bae0c bugfix [#24747] Blender crash entering in Sculpt Mode
rotate_m4 was being called with a zero axis.
2010-11-16 09:47:01 +00:00
5a1fdcdc2a bugfix [#24746] Align Camera to View locks 3D Editor in Camera Perspective View 2010-11-16 09:35:58 +00:00
7f96852176 fix for creating movie paths with non utf8 names.
button test if non utf8 chars are allowed was inverted.
2010-11-16 08:53:55 +00:00
f59b675641 patch [#24742] materials.pop() doesn't decrement user count
from Dan Eicher (dna)
2010-11-16 02:23:20 +00:00
7e0f9229d6 fix for fix, r33086.
- incorrect range check broke ZYX euler rotations, use MIN/MAX constants so this doesn't happen again.
- BGE Armature PyAPI also wasn't using correct min/max with rotation modes.
- clamp on file read rather then when calling the rotation functions, so developers don't use invalid args without realizing it.
- added assert() checks for debug builds so invalid axis constants don't slip through.
2010-11-16 01:19:37 +00:00
7a7b4aff40 Bugfix #24726
Doing F1-load a lot of times on same .blend could crash. 
Janne karhu provided a potential fix, which is good to add
anyway. Will ask him to verify too.

Added XXX warning for these lines, after filesel exec no
context variables should be re-used. Is for later investigation.
2010-11-15 16:26:30 +00:00
e3ace7ee62 Bugfix, reported in IRC
The enum "rotmode" was read using an array, without checking for boundary
cases, causing crashes on bad input. (Wahooney report 2, thanks!)
2010-11-15 13:33:38 +00:00
ccf1f08f37 Bugfix (IRC report)
Bone drawing code failed to check the correnct parent pointer, causing
NULL pointer to be read. Thanks Wahooney!
2010-11-15 11:45:54 +00:00
fd30c383dc Bugfix #24719: Layer ipocurves from Blender 2.49 wrongly ported to Blender 2.5x
Found and fixed a few problems here, but strangely I don't recall seeing any of these a few months ago when this conversion (probably last) worked well ...
2010-11-15 10:48:48 +00:00
5182fa2e05 Fix for [#24724] Emission settings of Particles with no physics are stuck to Previous newtonian settings. 2010-11-15 09:15:23 +00:00
91d544f322 fix for very old crash when setting an empty object as the camera and using stars. 2010-11-15 09:00:09 +00:00
df9bedddcf bugfix [#24708] World Notifier Problems
also draw stars when 'Only Render' option is enabled.
2010-11-15 08:53:35 +00:00
4661fb03a9 bugfix [#24704] UV editor: [x] modified does not update on change of modifiers
- VBO UV Edge display wasn't allocating a large enough array for drawing.
- VBO UV Edge drawing was using an edge flag with faces.
- notifier for modifiers updating the UV window.
2010-11-15 08:03:20 +00:00
6401058c22 bugfix [#24704] UV editor: [x] modified does not update on change of modifiers 2010-11-15 07:07:14 +00:00
db16310386 - 'matrix_basis' for objects and pose bones, this is an alternative access to directly adjusting the loc/scale/rot.
- pose bone 'matrix_local' wasn't well named since it didn't work like object or regular bones.
- pose bone matrix values for rna had array access rather then 4x4 matrix access.

 note: for pose bones update scripts by renaming 'matrix_local' --> 'matrix_basis'
2010-11-15 06:38:07 +00:00
8fee983619 patch from Dan Eicher to support intel C++ compiler for CMake on *nix. 2010-11-15 05:32:49 +00:00
7be25eba13 fix [#24712] 3ds_import fix
Rather then applying the proposed fix, enabling 'Apply Transform' works in almost all cases including the reported one.

There are some files that don't work with 'Apply Transform', which is why the option is worth keeping.

also remove unneeded calls to paint_facesel_test()
2010-11-15 00:07:38 +00:00
cdf7a1eaca creating the editmesh structure was running paint_facesel_test() for every vert and selected face.
not so efficient, check once.
2010-11-14 23:37:03 +00:00