Commit Graph

26884 Commits

Author SHA1 Message Date
Campbell Barton
3ae670fc02 fix [#24786] Setting Rotation Units to Radians doesn't affect the UI [33146] 2010-11-18 14:10:09 +00:00
Campbell Barton
4045e838df missed removing the file for scons. 2010-11-18 13:52:09 +00:00
Campbell Barton
95e7417e0a remove unused classes. 2010-11-18 12:54:05 +00:00
Campbell Barton
da1f288f50 rename libs internal libs for CMake + SCons (used in MSVC project files)
for game engine use "ge_" prefix & make names generally more descriptive.
2010-11-18 11:42:05 +00:00
Campbell Barton
8d77002ae7 patch [#24736] 3ds import hierarchy
from Dominique Lorre (dlorre)
- fixes [#24626] 3ds import assigns wrong positions to objects
- spec info http://www.the-labs.com/Blender/3dsspec.html, http://www.martinreddy.net/gfx/3d/3DS.spec

This patch adds parent/child support to the 3ds importer.
2010-11-18 10:36:14 +00:00
Ton Roosendaal
fd3c8214d0 Bug fix:
When 2nd window open, the code that tried to find an Image editor in the
the active window failed.
2010-11-18 08:44:50 +00:00
Joshua Leung
26cd3fd293 Bugfix #24781: Can't use rest position / pose position on linked-group proxy armatures 2010-11-18 05:45:21 +00:00
Campbell Barton
a3773b6ec5 bugfix [#24783] Strange shadows on beveled curve; goes away with modifier
this bug wasnt in 2.4x, suspect this happened when normal flipping was removed.
2010-11-18 05:35:04 +00:00
Campbell Barton
223e70467e bugfix [#24777] Scale both markers and keyframes at the same time?
sync marker option worked for translate and extend but not for scale in the dope sheet.
2010-11-18 05:05:06 +00:00
Campbell Barton
48524d6e91 fix [#24780] Metaballs are not drawn correctly in new scenes
this is a can of worms, at the moment blender depends on broken behavior for metaballs:
 find_basis_mball() can return a metaball object that fails a is_basis_mball() check which makes this logic very confusing (added note about this in mball.c).

Metaballs needs a refactor however at least make drawing fail consistently,
For wire draw is_basis_mball() wasn't being checked, for solid drawing it was (hence the strange wire frame).

For now the motherball needs to exist in the main scene else it wont work.
2010-11-18 04:26:50 +00:00
Campbell Barton
7045ef617f - many settings in a new scene didn't match the startup.blend defaults, copied into scene.c.
- view3d metaball panel wasn't updated for rna name change 'location' -> 'co'
2010-11-18 03:03:17 +00:00
Campbell Barton
50778a3ea5 store the view align setting even if its disabled & don't edit the view quat when getting a euler from it. 2010-11-18 00:26:00 +00:00
Doug Hammond
9183f20fb4 extensions_framework: lots of docs and code formatting to be more pep8-like 2010-11-17 21:28:22 +00:00
Ton Roosendaal
b99a11bc3c Bugfix, irc report by lmg
Toolbar:
Operator 'add object' didn't show checkbox for "align to view" if such was
set in user preferences.
2010-11-17 18:05:33 +00:00
Campbell Barton
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
Ton Roosendaal
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
Campbell Barton
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
Campbell Barton
5a37333053 fixes from r33127 2010-11-17 14:36:19 +00:00
Campbell Barton
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
Campbell Barton
17aa5ae796 bugfix [#24766] Crasher on inserting keyframe on Bezier points [33126] 2010-11-17 12:52:56 +00:00
Campbell Barton
376d129dc6 bugfix [#24671] Operators called from Python Leak Memory
This problem is caused by returning Modal from a non-modal operator.
2010-11-17 12:32:39 +00:00
Joshua Leung
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
Joshua Leung
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
Campbell Barton
91217f117f should fix building with collada. 2010-11-17 11:09:07 +00:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
fbcf01f9f7 cleanup the operator template and rename to operator_export 2010-11-17 07:00:14 +00:00
Sergey Sharybin
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
Mitchell Stokes
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
Campbell Barton
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
Campbell Barton
02bbce8b6d bugfix [#24672] Bone.evaluate_envelope() is misleading
fix from Dan Eicher
2010-11-17 03:26:50 +00:00
Campbell Barton
d0f7184ab9 bugfix [#24761] minor bug - Modifiers don't "catches" Vertex Group renaming automatically 2010-11-17 03:21:50 +00:00
Campbell Barton
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
Campbell Barton
2d6cf9ee6b the 'Multi' option was not being copied with the armature modifier. 2010-11-17 01:50:25 +00:00
Daniel Salazar
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
Campbell Barton
b1b02b7a5e bugfix [#24509] UV/Image Editor: selected elements move not as specified 2010-11-16 17:37:26 +00:00
Ton Roosendaal
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
Janne Karhu
c658141fad Fix for [#24750] Particles draw percentage setting is not working in No Physics mode 2010-11-16 16:56:21 +00:00
Janne Karhu
303646fbd4 Fix for [#24706] 2.55 beta Hair now only rendering small fuzzy blob 2010-11-16 16:39:35 +00:00
Campbell Barton
e60393b8a8 option to immediately write single render to a file added for OpenGL render. 2010-11-16 15:15:20 +00:00
Campbell Barton
cf3d6d63ee bugfix [#24462] UV Layouts saved as PNG results in two files (rename bug)
renaming failed in some cases, now we can just render to a file.
2010-11-16 14:45:27 +00:00
Campbell Barton
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
Ton Roosendaal
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
Sergey Sharybin
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
Campbell Barton
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
Campbell Barton
92ee3658d3 UV Layout Export was missing UV Layer check. 2010-11-16 12:54:44 +00:00
Ton Roosendaal
a58dcca5de Removing unnecesary print "draw swap exchange" 2010-11-16 12:29:30 +00:00
Ton Roosendaal
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