Commit Graph

17521 Commits

Author SHA1 Message Date
Campbell Barton
eed13b43b1 merged from trunk 20741:20848
* Missing changes to release/windows/installer
* Sequencer fixes in source/blender/src/seqaudio.c dont apply to 2.5
* brechts fix for #18855 r20763 wasnt merged, does this apply to 2.5?
2009-06-13 11:09:13 +00:00
Campbell Barton
2f1e118c30 in some cases importing without materials could raise a python error.
surprising nobody found before.

reported by <chewed-on> who doesnt want his real name used for some reason.
2009-06-13 09:33:55 +00:00
Campbell Barton
e10e1ac04e adding __contains__ to python rna props.
example usage.
 if "Scene" in bpy.data.scenes: print(True)
 
Only works for strings with collection property types.
2009-06-13 08:04:43 +00:00
Campbell Barton
d35d04a789 text live_edit feature useful for UI scripts (run python scripts on every keystroke, careful with the os module)
http://www.graphicall.org/ftp/ideasman42/realtime_ui.ogv

current kerning makes this a bit cryptic.
2009-06-13 06:42:12 +00:00
Campbell Barton
2183af5760 no need to use mathutils 2009-06-13 04:31:30 +00:00
Campbell Barton
2371c35afc OBJ Import
* Wasn't setting the curve 3D option
* The nurbs object name could be None which caused an error, check its set.

OBJ Export
* Off by 1 error on closed nurbs was incorrect, broke other importers but worked with blender.
* Nurbs verts were not adding to the total vert count, scrambling meshes added after (somehow my first test case had all the curve objects last)
2009-06-13 03:54:27 +00:00
Kent Mein
03de57c6d5 coverity issue CID: 523
Checker: UNINIT (help)
File: base/src/source/blender/blenlib/intern/freetypefont.c
Function: objchr_to_ftvfontdata
Description: Using uninitialized value "face" in call to function "freetypechar_to_vchar"

freetypechar_to_vchar expects face to be defined so we need to
return before then if we have a problem.  Also it doesn't
make sense to not return FALSE if there is an error because we
didn't do anything.

Kent
2009-06-13 03:08:58 +00:00
Campbell Barton
8ef87d8b4f X90 Rotate option so you can export without rotation and import, keeping the same orientation. 2009-06-13 03:05:20 +00:00
Campbell Barton
fe329792b4 remove warnings 2009-06-13 01:30:47 +00:00
Diego Borghetti
845e9a0e25 Made the kerning a float, this give a little more of tweak.
0.5 is the default value now, the range are from -5.0 to 5.0.
Note that we allow negative value, but the current draw code
always check for overlap characters.
2009-06-12 17:18:59 +00:00
Nathan Letwory
dee188df16 === SCons ===
* make the nsis installer script automatically use the Python version we build against
* bump Python version used
2009-06-12 15:37:23 +00:00
Thomas Dinges
0e170f8e56 2.5 Texture Buttons:
* Now texture settings (colors, mapping, influence) only show up, when the texture type != None.
2009-06-12 15:22:08 +00:00
Ton Roosendaal
63abf1ec6c 2.5
Fix for new picker: mouse move out of menu was handled as 
restore... added new block flag UI_BLOCK_OUT_1 to denote
it shouldn't.
2009-06-12 15:11:51 +00:00
Thomas Dinges
7910d45807 2.5 RNA:
* Added some more notifiers to userdef.
* Removed "yafray_export_directory" property.
2009-06-12 14:48:11 +00:00
Ton Roosendaal
a62bec6667 2.5
Quick Color picker alternative!

- only a color circle + value slider
- exits immediate after use, or slight mouse move outside picker
- use scrollwheel to change HSV 'value'. Also works while picking.
- added nicer AA'ed cursor in picker
- All color swatches change 'value' on ALT+Wheel mouse-over

Old picker is still there, under SHIFT+click on swatch. Needs
evaluation... part of UI keymap? Per button type? Or divide
picker in left/right? Or just have all those old picker buttons
in another panel... I'm not to fond of this giant old popup.
2009-06-12 14:22:27 +00:00
Brecht Van Lommel
32b34f82fd UI:
* Immediately do updates when working in the color picker popup.
* Fix for color picking wrongly getting cancelled sometimes.
2009-06-12 13:53:08 +00:00
Campbell Barton
1c2ce9535c use contains for ListValue and KX_GameObject types (has_key is deprecated by python)
eg.
 if 'prop' in gameOb: ...
 if 'GameOb' in sce.objects: ...
2009-06-12 12:56:12 +00:00
Campbell Barton
96c5f36eff OBJ import support for nurbs curves
Imports nurbs with orderU and endpointU (inferred from weights).

No support for vert-weights, surfaces, 2D curves or non-bspline's yet.

fix for exporting closed nurbs, was overlapping too much of the curve.
2009-06-12 04:16:12 +00:00
Peter Schlaile
642fea299b == Sequencer ==
This fixes:
[#18894] Scene iterfer with movie in sequencer

(the real use cases that also triggered that bug are fixed with the
previous commit)
2009-06-11 22:21:00 +00:00
Diego Borghetti
ec8b2593ec Smal tweak to allow the user set a kerning value.
This commit add two option to the blenfont library:

1) BLF_FONT_KERNING

 This enable the kerning information that come with the
font, by default this option is disable and still don't
have a UI for change.

2) BLF USER_KERNING
 This allow the user set a kerning value to by apply for
every character, by default this option is enable but all
the font have a kerning value of zero.

Ton I add this option to the style with a default value of 1.

Access from:
 Outliner -> User Preferences -> Style -> FontStyle -> Kerning
2009-06-11 21:43:59 +00:00
Campbell Barton
a054f3ccce elif rd.file_format in ("OPENEXR"):
...is the same as 
elif rd.file_format in "OPENEXR": # ("OPENEXR",) <- syntax for a single tuple

At the moment its using pythons syntax for a string search which works but isnt whats intended. Replaced in with ==
(Also use '' for enums rather then "")
2009-06-11 21:11:33 +00:00
Joseph Eagar
73092af8b7 don't build game engine by default, and print a warning if game player is enabled. 2009-06-11 20:47:14 +00:00
Thomas Dinges
d12c4f751c 2.5 Scene Buttons:
* FFMpeg buttons by William Reynish. Thanks!
2009-06-11 18:58:37 +00:00
Thomas Dinges
a4175684b9 2.5 RNA:
* Tooltip updates by William Reynish. Thanks!
2009-06-11 18:19:08 +00:00
Ton Roosendaal
4e66f6d11f 2.5
Added search-browse to the Python ID template. Also added icon/button
for 'Add new'. (Note, we need icon for it).

Also fixed bug in search menu closing too quick on mouse-release, when
mouse was close to bottom of menu button.
And removed annoying warning if ID pointer was zero.
2009-06-11 17:21:27 +00:00
Thomas Dinges
2c8fae1f8b 2.5:
* Fixed some RNA properties Ranges.
2009-06-11 16:59:59 +00:00
Erwin Coumans
db8b4cee56 Bugfix for [#18911] Applied torque breaks rigid bodies in game engine 2009-06-11 13:42:41 +00:00
Campbell Barton
776b8c0369 sequencer patch from Xavier Thomas
- allocate transform and crop on "use"
- bring back the scopes drawing (histogram, vectorscope, luma)
- tweak properties layout (need more)
2009-06-11 11:54:56 +00:00
Peter Schlaile
bf729ab268 == SEQUENCER ==
This fixes 
* some issues with Scene strips containing audio by removing
  the curpos pointer from sequence structure. (the same scene
  strip can now be used in a row)

  That also makes the code a lot cleaner.
* fixed a corner case on the beginning of a strip, where audio was
  not mixed in, depending of current audio buffer state.
  
* Also: made some hardwired variables macros to enhance readability.

Problem remaining: mixing the same scene strip several times (read
put it into a stack instead of into a row) has
problems with HD-audio since the same HD-audio state structure is
used and therefore the system will seek permanently, which leads to
audio distortions...
2009-06-11 11:44:47 +00:00
Campbell Barton
8225caa9fb update from Aaron Keith, fixes normal flipping 2009-06-11 10:46:13 +00:00
Campbell Barton
a543a1549e Sound actuator bug reported by zapman on blenderartist.
Negative events would play on an actuator if it hadn't played a sound yet.
2009-06-11 10:26:53 +00:00
Campbell Barton
3bdcd4f738 patch from Xavier Thomas, color balance and proxy access both need to allocate structs when enabled. 2009-06-10 22:03:50 +00:00
Thomas Dinges
1a787efd7c 2.5:
* Wrapped FFMpeg in RNA (some properties are disabled for now).

* Some Texture panel tweaks by William. Thanks!
2009-06-10 20:50:23 +00:00
Campbell Barton
9bcc6f3cb6 patch from Xavier Thomas, make the sequence strip start frame and channel editable 2009-06-10 19:57:06 +00:00
Campbell Barton
5a8b389ebe was printing all warnings twice 2009-06-10 19:33:59 +00:00
Campbell Barton
8347a9f21b Option to export curves as OBJ native curves (rather then a bunch of edges)
- nurbs and polyline (not bezier)
- closed / open curves
- OrderU works as expected
- Endpoint U works too.
2009-06-10 19:14:05 +00:00
Ton Roosendaal
219f1ce2f0 2.5
Scene toolsettings was not setting Brush pointers on read, causing
crashes on reading files. Thanks Jingyuan for (irc) report! :)
2009-06-10 15:09:44 +00:00
Ton Roosendaal
fba6a9931c 2.5
First version of search-based ID browsing. Now only in use for the
top bar screen/scene browse. The python buttons will follow. 
Also made search button colors match the theme colors from menu back.

Todos for browse-search:
- "Add new" will disappear, and become a separate icon button in the
  row of widgets (like X, delete).
- Drawing the preview icons in menu
- Make search menu dynamic, with configurable number of items? And/or
  multi-collumn... for now it's static
- Search menu should popup with last active ID visible and selected
2009-06-10 11:43:21 +00:00
Campbell Barton
872767f5c7 RNA wrap give_stripelem as getStripElem for sequence strips so the panel can display the current frames filename. 2009-06-10 06:02:08 +00:00
Dalai Felinto
323863015d fix for bug #18898: GE perspective 3D View not working properly (missing LENS)
note: I'm not changing GamePlayer files. There is no such a thing as 3D view camera in gameplayer (override_camera).
2009-06-09 22:56:43 +00:00
Campbell Barton
b9ef34b6e5 patch from Xavier Thomas, add back the sequencer snap operator 2009-06-09 21:29:59 +00:00
Guillermo S. Romero
a796a74fb5 Timecode printing is more or less duplicated in two different places,
so make them both use the same style and note down for future.
2009-06-09 20:03:52 +00:00
Brecht Van Lommel
9a54ca9af7 Fix for bug #18710: a crash with hair emitted from vertices. 2009-06-09 18:50:02 +00:00
Brecht Van Lommel
e917b1043e Fix for bug #18860: particle hair strands missed first segment
when rendering as regular geometry (not strand render).
2009-06-09 18:25:57 +00:00
Campbell Barton
8adb155e98 Built in limitations for script scanning was making python fail on meta-androcto script pack.
If a total of 30 subdirs was hit, or 4 dirs deep was hit - script scanning would quit, skipping files in the root scripts path too.

To work around this the script pack included some of blenders scripts twice just so they would get into the menu but this is a dodgy workaround.

* dont stop scanning for scripts when limits are reached (just dont scan further).
* global 30 dir limit per scan is silly - removed.
* limit recursive depth is kept but keep scanning at lower depths.
* bumped recursive limit from 4 to 6

* flt_properties.py had #!BPY without a menu header.
2009-06-09 18:21:48 +00:00
Chris Want
8704629945 Use fputs instead of fprintf in mem_error_cb(). This silences the
gcc warning "format not a string literal and no format arguments".
2009-06-09 18:08:45 +00:00
Brecht Van Lommel
19c9708a16 Fix for bug #18855: in texture node editor, "Add New" for world
did not set texture in correct place and crashed without an active
object.
2009-06-09 17:56:07 +00:00
Ken Hughes
61889df87b Tools
-----
Bugfix #18835: negatively scaled objects resulted in incorrect boolean
output.  Commit to trunk instead of tagged release this time :-p
2009-06-09 17:04:50 +00:00
Thomas Dinges
677abc7f49 Texture panel tweaks by William. 2009-06-09 16:52:02 +00:00
Campbell Barton
ff6750c6fe Edits from William, Xavier Thomas (xat) and myself
- strip options in the sequencer view only.
- added a view panel for non-sequencer display modes.
- button adjustments
2009-06-09 16:19:34 +00:00