Commit Graph

21366 Commits

Author SHA1 Message Date
Janne Karhu
8eb31b6bcb Fix for [#22073] Particle Emit From Volume Button No Different Than Emit From Faces Button 2010-07-26 10:31:51 +00:00
Campbell Barton
ed5d0bb62f patch from Mitchell Stokes with some changes.
BGE Py Controllers were effectively doing this...
 "a.b.c" --> "__import__('a').b.c()"

This was annoying because it meant module 'a' would need to import 'b' explicitly.

Now use import like this.
 "a.b.c" --> "__import__("a.b").c()"

Note that this has the slight disadvantage that these need to be modules, where as before they could be collections of functions in a class instance for eg. So its possible this breaks existing files but dont think anyone used this since its a fairly obscure use case.
2010-07-26 08:49:16 +00:00
Campbell Barton
e62c0ea835 replace macros VECCOPY and QUATCOPY with inline math functions no functional changes
also replace mul_m4_v3() with mul_v3_m4v3() in a few places.
2010-07-26 06:34:56 +00:00
Campbell Barton
304043ee5f [#22617] Using register/unregister alone crashes blender
wasnt crashing anymore but made exception message clearer.
2010-07-26 05:55:56 +00:00
Campbell Barton
ba3192bf71 bugfix [#22962] Crash when starting the render in the attached file (Kino Bug Reporting Sprint :)
NULL checks on tex->pd are elsewhere in the code so this should be ok.
2010-07-26 05:31:31 +00:00
Jason Wilkins
9941b7d52d * was suggested I combine all the direction modes into a single enumeration by using RNA_def_property_enum_funcs 2010-07-26 05:25:09 +00:00
Campbell Barton
e977f80a8f bugfix [#23018] Can't run 2.53 build
for some reason mbstowcs() was converting '/home/matrem/Téléchargements/' to '/home/matrem/T', where blenders utf8towchar() worked correctly, tried changing my locale but didnt help so using blenders utf8towchar() function.
2010-07-26 04:21:44 +00:00
Nicholas Bishop
ec19c7dffc == Sculpt ==
Fixed brush icons loading slowly

* Changed brush icon property from an enum to a flag that toggles whether a custom file is used for the brush icon
* Changed get_brush_icon to only handle loading external icons, built-ins are handled through the regular icon system
* Modified preview icon drawing to allow built-in icons
* When not using a custom icon, a default icon is selected based on the current tool

TODO:
* Allowing preview to show built-in icons makes the brush texture selector look ugly when nothing is selected. As discussed on IRC though, the nothing-selected state needs to be clarified anyway; I'll address this in another commit
* Use image browser when selecting a custom icon
* Selecting the default icon is ugly (uses the active object's mode), this can be fixed by making brushes know which paint mode they are part of
2010-07-26 04:00:09 +00:00
Jason Wilkins
6561da03ae * Accessing Brush size, alpha, size pressure, alpha pressure, and unprojected radius need to use the appropriate brush_* function. 2010-07-26 03:43:17 +00:00
Nicholas Bishop
5b1231849c * Factored out some duplicated code from rna_brush into paint.c, added a new function that checks whether a brush is used by that paint struct
* Fixed an improperly initialized variable in BKE_previewing_free_id
* Added an RNA access function to get the icon associated with a value
2010-07-26 02:35:43 +00:00
Campbell Barton
a27de17349 [#22918] Animations not being deleted from .blend files
fake user button wasnt available so there was no way to have an action removed for the user.
2010-07-26 02:31:45 +00:00
Campbell Barton
150236448d bugfix [#22994] Crash when loading this file 2010-07-26 02:08:47 +00:00
Campbell Barton
ad99c6644a bugfix [#21388] Auto depth + Z Transparency artifacts 2010-07-26 01:59:50 +00:00
Campbell Barton
e4a7087982 bugfix [#22836] Alt+MMB view alignment don't respect all axes directions
also moved rotation_between_quats_to_quat into BLI_math from python mathutils.
2010-07-26 00:11:14 +00:00
Nicholas Bishop
cc061d075f == Sculpt ==
More icon work

* Added icon defines for all the brushes
* Load all the brush icons after loading regular Blender icons
* Added the brush icons to their respective tool enums in RNA
* Fixed a couple unused-variable warnings
2010-07-25 22:23:40 +00:00
Nicholas Bishop
ba30ac1230 == Sculpt ==
Minor sculpt cleanups

* Moved the (previously extern) declarations of the brush icon data to ED_datafiles.h
* Set sculpt tool RNA to alphabetical order, quite a long list now
2010-07-25 22:05:52 +00:00
Peter Schlaile
98e26b1b08 == Sequencer ==
Some cleanup on effects:

- converted interface to float cfra
- made effects return their own ImBufs, which has the following 
  advantages:
  * code in sequencer.c is a lot more readable.
  * multicam saves one memcpy of an image
  * prepares things for GPU-rendering
2010-07-25 17:19:55 +00:00
Janne Karhu
6ec87e6095 Fix for [#22128] particle sizes and physics
* size wasn't updated at all for particles with keyed or no physics
2010-07-25 14:40:18 +00:00
Janne Karhu
1e7f96343e Fix for [#22167] Hair lattice only works with dynamic hair
* Doing hair effectors, guides & lattices all in one loop didn't work properly
2010-07-25 13:18:15 +00:00
Sergey Sharybin
cc0f3146e7 Shapekeys for curves/surfeces
Fix #21498: Edit curve Shape key /252_r 27318

Added full support of shape keys for curves and nurbs surfaces including
topology changing in edit mode, undo stuff, updating relative keys when
working under basis and so on.
2010-07-25 11:57:36 +00:00
Campbell Barton
61a09d96b1 py api mathutils.Quaternion()
- getting axis, angle wasnt calling read callbacks so it didnt work with RNA.
- made setting axis and angle attributes possible.
2010-07-25 02:56:39 +00:00
Campbell Barton
885bbe6999 from Luca's recent commit noticed there are more typo's: lenght -> length 2010-07-25 01:45:53 +00:00
Campbell Barton
9d97123f90 Remove WM_FAST_DRAW ifdef which I added while Ton was on holiday.
Only drawing the areas which need redrawing work so no reason to revert this.
2010-07-25 01:39:47 +00:00
Peter Schlaile
6a4d370a16 Bugfix: the sequencer core rewrite missed preprocessing of images with
wrong resolution on input, which can create image distortion and crashes 
on render.

Thanks to Juan Pablo Bouza for spotting this one!
2010-07-24 19:42:29 +00:00
Luca Bonavita
0eca3db6c5 - typo: from "lenght" to "length" in rna
fixes [#22997] typo in autocomplete/python api name in bpy.context.active_object.data.draw_edge_lenght not length
  https://projects.blender.org/tracker/index.php?func=detail&aid=22997&group_id=9&atid=498
  no addons are affected by this change

- also found a typo in particles toolbar
2010-07-24 16:35:58 +00:00
Mitchell Stokes
eabbbcdff9 Fixing a crash when using either BL_ArmatureBone.parent and BL_ArmatureBone.children. 2010-07-24 09:26:05 +00:00
Peter Schlaile
1e816635b0 Bugfix: Small change to hash algorithm hinted by James Ruan on mailing list to
make hash distribution a little bit better.
2010-07-24 08:47:14 +00:00
Jason Wilkins
0246caf513 * Fix: the radius of the brush is bigger than the texture square in the UV image editor so it is always drawing a square at stronger intensity. 2010-07-24 07:18:31 +00:00
Jason Wilkins
068b0c3f6f Fix [#22965] Icons for new brushes won't get sticky
Somehow the code I submitted to fix this problem was commented out.  I think I just submitted the wrong code.
2010-07-24 05:53:30 +00:00
Campbell Barton
f24bcc689c bugfix [#22988] Duplicating Lights by Frame Causes Hangup 2010-07-24 02:51:51 +00:00
Matt Ebb
780f4c1c78 Fixed an annoying problem where sometimes tooltips would get left
hanging on screen, making you have to mouse over them to clear them.

I hope this was the only issue causing this, if anyone sees hanging tooltips 
after this commit, please report it!
2010-07-24 02:49:58 +00:00
Campbell Barton
1fdb880cf4 bugfix [#22990] Crash rendering joined curves
- dont render invalid material indicies (like mesh faces)
- clamp the material index values when joining, TODO: merge material lists properly.
2010-07-24 02:27:43 +00:00
Campbell Barton
f148aa696e bugfix [#22769] Undo Looses Active Camera
The problem was that the v3d could have a different camera to the scene even when locked.
VIEW3D_OT_viewnumpad was ignoring v3d->scenelock option and allowing an invalid state.
2010-07-24 01:32:03 +00:00
Campbell Barton
a732678217 [#22873] Snap to increment isn't working that expected when Units set to Metric or Imperial - minor
- pick the closest unit that matches the existing step size.
- set the distance subtype on some camera flags.
- commented mesh flag 'ME_ISDONE' its nolonger used.
2010-07-24 00:24:58 +00:00
Campbell Barton
bd90c33bbf bugfix [#22941] set object center/origin on a linked duplicate causes linked copied to become unselectable in viewport 2010-07-23 23:48:21 +00:00
Campbell Barton
9c3376a030 bugfix [#22716] Game engine corrupts rig ID-Properties. 2010-07-23 19:47:25 +00:00
Guillermo S. Romero
c36fcf5116 SVN maintenance. 2010-07-23 19:43:13 +00:00
Campbell Barton
7275ba728d fix for another case where object editmode data could be lost when switching scenes. 2010-07-23 18:42:15 +00:00
Campbell Barton
318c975dcb bugfix [#22954] Crash going edit mode on an object linked in another scene (Kino Bug Reporting Sprint :) 2010-07-23 18:30:14 +00:00
Peter Schlaile
d5346883dc Bugfix: [#21479] Insert Keyframe in some Sequence strip properties does
nothing

This fixes Crop and Transform the same hacky way like Color Balance.

Will do a real fix, if I find a clever way. (Those structures must 
provide a Sequence struct backpointer!!)

Cheers,
Peter
2010-07-23 17:48:16 +00:00
Brecht Van Lommel
72689deb63 Fix #21077: multiple python headers in an area header not working correct,
each needs a unique ui block name.
2010-07-23 17:26:00 +00:00
Peter Schlaile
65fcb0edcf == Sequencer ==
This patch cleans up the sequencer core by replacing the caching system
(TStripElems) with a hash based system, which is:

a) a lot faster
b) a lot more readable
c) a lot more memory conserving

The new caching system is also a good building ground for

a) sub frame precision rendering (even on scene strips)
b) multi core rendering (threaded rendering is still disabled, but can 
   be extended now to arbitrary core numbers)

I tested the code on an extensive editing session today and had no 
crashes during 4 hours of editing. So I consider it very stable.
2010-07-23 16:57:11 +00:00
Brecht Van Lommel
bf5f5bd3bd Fix #20863: when loading a file without UI, with multiple windows open,
the other windows would not preserve the screens correctly, code for
reading 2.4x files was running when it didn't need to.
2010-07-23 16:50:25 +00:00
Janne Karhu
4c4ec56f49 Fix for [#22644] hair particles bug 2, patch by Lukas Toenne 2010-07-23 16:48:45 +00:00
Brecht Van Lommel
a62e340573 Fix #21028: operator redo creates hundreds of images when texture paint is on.
Now operator redo will look for an undo push with the same name in both the
paint/sculpt and global undo stack.
2010-07-23 14:46:31 +00:00
Brecht Van Lommel
f5dd835850 Fix wrong default color for new images in some cases. 2010-07-23 14:35:23 +00:00
Brecht Van Lommel
d3c9b72ba6 Restore image auto refresh for image editor, code was not updated for 2.5 yet. 2010-07-23 14:34:43 +00:00
Brecht Van Lommel
57af5a8592 Another attempt to solve draw methods on Intel. Windows and mac now use
overlap, while unixes use overlap flip. Also implemented recent fix for
redrawing after backbuffer selection differently to avoid unneeded
redraws.
2010-07-23 13:42:58 +00:00
Brecht Van Lommel
9914aa38ed Fix #22978: wrong property min/max on icosphere subdivisions. 2010-07-23 10:42:59 +00:00
Campbell Barton
37bb55b7bc fix bad memory range of text3d charinfo being used. 2010-07-23 05:31:11 +00:00
Campbell Barton
bd30c4da8a [#22876] Add new scene, stacker ".00" bug
fix for r30441, (reverted for the beta), splitIDname wasnt returning the correct string length.
2010-07-23 04:41:27 +00:00
Campbell Barton
026ac24922 [#22488] Reloading scripts causes crash
F8 key enabled again, useful for script UI development.

- keying set freeing wasnt freeing from all scenes and the builtin list.
- PointerProperty() cant refer to a removed python srna type (fixed in rigify and netrender).
- Added a check for freeing a type used by a PointerProperty but its very slow, makes reloading take ~10sec. Only enabled this in debug mode for now.

Netrender register() function isnt re-registering the property, probably because the module is cached by python and not re-run.
2010-07-23 01:43:30 +00:00
Jason Wilkins
43d5357a2e * Fix [#22970] 2.5B 30369M crash opening 2.5A2 eye.blend 2010-07-22 23:06:09 +00:00
Campbell Barton
5b4a3b56d2 minor warning fix
brush_alpha was being converted to an int not a float, if this is intentional it should be delared 'const int', but looks like it wasnt.
2010-07-22 22:04:07 +00:00
Jason Wilkins
3a042d2053 Fix [#22965] Icons for new brushes won't get sticky 2010-07-22 21:10:29 +00:00
Jason Wilkins
2a02632882 * removing the notifiers I added until I can discover the most lightweight way to achieve the same thing 2010-07-22 20:18:42 +00:00
Jason Wilkins
3b5b761a56 == Sculpt/Paint Fixes ==
* Fix: unify strength and size did work consistently with other paint modes
* Fix: If [ and ] keys were used to resize a brush it was not possible to increase the size of the brush if it went under 10 pixels
* Fix: Made interpretation of brush size consistent across all modes, Texture/Image paint interpreted brush size as the diameter while all the other modes interpret it as radius
* Fix: The default spacing for vertex paint brushes was 3%, should be 10%
* Fix: due to fixes to unified strength, re-enabled 'Unify Size' by default
* Fix: Unified size and strength were stored in UserPrefs, moved this to ToolSettings
* Fix: The setting of pressure sensitivity was not unified when strength or size were unified.  Now the appropriate pressure sensitivity setting is also unified across all brushes when corresponding unification option is selected
* Fix: When using [ and ] to resize the brush it didn't immediately redraw
* Fix: fkey resizing/"re-strength-ing" was not working consistently accross all paint modes due to only sculpt mode having full support for unified size and strength, now it works properly.
* Fix: other paint modes did expose the ability to have a  custom brush colors, so I added the small bit of code to allow it.  Note: I made all of the other paint mode brushes white.  Note2: Actually, probably want to make the paint modes use the selected color for painting instead of a constant brush color.
* I had removed OPTYPE_REGISTER from some Sculpt/Paint operators but in this commit I add them back.  I'm not completely sure what this option does so I don't want to disturb it for now.
2010-07-22 18:56:46 +00:00
Peter Schlaile
528cce4313 Broke cmake on Userpref patch... sorry. 2010-07-22 15:16:20 +00:00
Joilnen Leite
bc42ff687e Fixing this error:
In file included from /home/joilnen/blender/obj/linux-glibc2.9-i386/blender/makesrna/rna_userdef_gen.c:612:
./rna_userdef.c:54:35: error: MEM_CacheLimiterC-Api.h: No such file or directory
make[4]: *** [/home/joilnen/blender/obj/linux-glibc2.9-i386/blender/makesrna/rna_userdef_gen.o] Error 1
2010-07-22 15:09:41 +00:00
Peter Schlaile
b26a87fcd0 Bugfix: Mem cache limit wasn't updated, when changed in userpref. 2010-07-22 14:02:05 +00:00
Brecht Van Lommel
3d22402720 Fix #22940: material rename crash, delete selection in a text button
was not working correct.
2010-07-22 12:51:04 +00:00
Matt Ebb
da04afe78e Fix [#22946] Camera inside volume gives bad results 2010-07-22 12:30:17 +00:00
Matt Ebb
f5d7fc6da5 committed wrong version of this file 2010-07-22 12:02:39 +00:00
Matt Ebb
5d2e08cdee Fix for volume render light cache:
Now the bounding box for the light cache's voxel grid is calculated in 
global space, rather than camera space as it was previously. This fixes
flickering lighting on static volumes with camera motion, caused by
the camera space bounding box changing from frame to frame.
2010-07-22 11:54:12 +00:00
Sergey Sharybin
33cb2f93ff Fix #22661: Multires/Sculpt Segfult
- Show error message in multires modifier if there is no MDISPS layer
- Sculpt on basis mesh if there is no the same layer
2010-07-22 11:27:54 +00:00
Tom Musgrove
7c3375a6fb just a note on where to look later 2010-07-22 10:59:03 +00:00
Tom Musgrove
97f91ed3fa this fixes the bug that occurs when using pen tablet controlled pressure and the first daub is at maximum pressure - the bug is actually in brush_painter_paint(BrushPainter *painter, BrushFunc func, float *pos, double time, float pressure, void *user) according to brecht, but 'seems more complicated than expected to properly fix this' so this work around has been approved 2010-07-22 10:56:27 +00:00
Brecht Van Lommel
617711f7bf Attempt to fix black 3d view with texture paint + overlap draw mode. 2010-07-22 10:02:02 +00:00
Peter Schlaile
9ded4bcc13 == Sequencer ==
Bugfix: toggling deinterlace properly updates movie files now
2010-07-22 08:57:23 +00:00
Matt Ebb
188d1384fe Fix de/select all operator naming for consistency 2010-07-21 22:57:48 +00:00
Diego Borghetti
7925de1415 Fix #22894
[#22894] SEQUENCER; Drag & Drop into VSE as strip sends user to
file manager for import - MS Windows

The invoke function for both operator don't check the the filepath
property (this come from the drop event), so always open the
file browser.

Note that this problem is still there for Image, but there is something
else there, because the op SEQUENCER_OT_image_strip_add never got
this property (filepath). I check and the problem seems to be the
missing WM_FILESEL_FILEPATH when call WM_operator_properties_filesel.

The problem is that if I put this flag in the function, the image
strip stop working, so have to check a little more about this.
(Any idea why ?)
2010-07-21 19:49:43 +00:00
Brecht Van Lommel
969c0fd718 Fix #22894: sequencer drag & drop wasn't working anymore. 2010-07-21 17:37:40 +00:00
Brecht Van Lommel
64de3feb37 Fix #22813: black 3d view with overlap mode + operator doing backbuffer
draw for selection but not selecting anything.
2010-07-21 16:49:43 +00:00
Brecht Van Lommel
4536a4c610 Fix #22841: crash rendering scene with opengl in sequencer as part of
animation. Only allow this from main thread, opengl can't be called from
render threads. It was already disabled in background mode.

For now I'm going to consider this a limitation.
2010-07-21 16:20:54 +00:00
Brecht Van Lommel
678892805e Fix #22883: interface panels blank when drawing axis constraint.
GL_DEPTH_TEST was not incorrectly enabled in wireframe mode.
2010-07-21 16:18:00 +00:00
Brecht Van Lommel
b72af8c09a Fix #20983: cloth and smoke point cache step was not enforced to 1. 2010-07-21 15:58:15 +00:00
Brecht Van Lommel
6a8ce04e54 Fix #20084: merging triangles with different normals into a quad
would create a hole, just crappy editmesh code, no need to merge
to bmesh.
2010-07-21 15:23:49 +00:00
Brecht Van Lommel
44160c9747 Fix #20196: division by zero in edge slide with two overlapping loops. 2010-07-21 15:22:11 +00:00
Brecht Van Lommel
ff00aa1b7e Fix #22786: displace node doesn't work with procedural textures. 2010-07-21 14:13:48 +00:00
Brecht Van Lommel
ee6be64a2c Fix #22897: text insert operator only worked for one character,
now inserts the whole string.
2010-07-21 14:11:19 +00:00
Brecht Van Lommel
8eb594b74b Fix #22870: Can't save modified non-packed images. File exist check
wasn't taking into account that there could be relative paths.
2010-07-21 14:09:45 +00:00
Ton Roosendaal
66ce15b7af Added a donations link in the splash. 2010-07-21 11:12:26 +00:00
Brecht Van Lommel
e3428ae73f Change back automatic draw method to triple buffer for Intel cards, overlap is
not working reliable and flickering on various configurations, will try to find
out what these are, but for now probably better to have correct than fast drawing.
2010-07-21 10:44:46 +00:00
Brecht Van Lommel
edeef8bcd7 Revert revision 30441: [#22876] Add new scene, stacker ".00" bug
This commit broke unique datablock naming, tried to fix it properly but the
code here is too tricky to change now, will just reopen the bug report.
2010-07-21 10:39:51 +00:00
Tom Musgrove
ea008f862d forcing unfied size to off right now, since the other paint modes don't understand it. It can be renabled if jason has time to look at it (should be an easy fix, but it is far too late in the evening here for me to look). 2010-07-21 10:29:23 +00:00
Brecht Van Lommel
f59afb5f99 Unified size only works for sculpt, so only modify it in sculpt mode. 2010-07-21 09:39:21 +00:00
Brecht Van Lommel
2ea8a71d87 2.5: move some do_versions compatibility code under < 253 check. 2010-07-21 09:25:00 +00:00
Joerg Mueller
d17ce0f148 Merging revision 30567 from my GSoC branch, log: Fix for sound not possible to load when file unsaved. 2010-07-21 07:55:53 +00:00
Andrea Weikert
51bd50f746 == installation paths ==
Hopefully last fix for path issues for this release
* The config folder should also be searched for in the 'local' path for local installations
(This code was already there, but removed in revision 30440)
2010-07-21 05:49:48 +00:00
Jason Wilkins
4c52624524 * enabled tablet pressure for strength for all brushes 2010-07-21 01:39:18 +00:00
Jason Wilkins
015ecdee29 * Polish preset did not enable tablet pressure for strength
* Turned off 'Front-Face Only' for all brushes, it needs more testing
* Added brush icons for other paint modes
* Moved 'tool' panel to bottom of all paint modes
* Moved 'appearance' panel to be next to bottom
* Moved brush selector panel to top of all modes
* Closed all panels except the brush selector panel
* Turned off X symmetry
2010-07-21 00:57:25 +00:00
Tom Musgrove
b21092d6ad sorry this hadn't been committed eearlier allows shift+number so now up to 20 brushes can be selected via the numeric selection instead of just the first ten, also CKEY is clay, SHIFT CKEY is crease, and IKEY is inflate - not sure when the IKEY for inflate got dropped previously 2010-07-20 23:53:52 +00:00
Jason Wilkins
dd74b723eb * added keymap C for crease brush
* fixed key mappings for Pinch and Flatten
2010-07-20 22:06:12 +00:00
Jason Wilkins
a0c80f31a0 * enable unified paint/sculpt size by default.
Note: I think this will enable paint/sculpt in all files, even when user has turned it off, unless subversionfile is bumped to 6 and the comparison is changed to subversionfile < 6.  

I'll leave that to somebody else who knows better when to change the subversionfile.
2010-07-20 21:55:08 +00:00
Jason Wilkins
8005e7f130 * In previous commit, the draw brush for sculpting got separated out to a new brush called 'SculptDraw'. Updated the keymap 'D' to switch to this new brush. 2010-07-20 21:41:42 +00:00
Andrea Weikert
d047e5cbcd fix [#22915] Bookmarks and Recent no longer working in r30498
fix [#22920] Clicking folder icons doesn't work in File browser and append

* issue was that on windows stat requires the trailing slash removed, even with mingw.
(since we are after ahoy, putting this into extra #define, code cleanup will follow after release)
2010-07-20 19:26:53 +00:00
Xavier Thomas
a32b1ce8dc Add Ctrl+Alt+S as shortcut for "Save Copy". It was using the same as "Save As" and was confusing in the menu. 2010-07-20 18:06:46 +00:00
Diego Borghetti
a725cac520 Fix #22905
[#22905] Adding objects with a grid size of <1m results in a 0 size object

The problem here is that the return value of the function
ED_object_new_primitive_matrix is a float, not an int.

This come from an old revision, before the two dia and depth
multiplication was using the function (two call to the same
function). This was change to only call the functio one time
and store the value in the "scale" variable, but the scale
was declare as int, not float.
2010-07-20 16:54:50 +00:00
Brecht Van Lommel
75913ce446 2.5 Beta version files increment, from 2.52 to 2.53. 2010-07-20 16:44:59 +00:00
Brecht Van Lommel
1f6d178b73 2.5 Beta splash screen. 2010-07-20 16:42:23 +00:00
Jason Wilkins
e8d45a8c40 * typo fix 2010-07-20 13:43:09 +00:00
Jason Wilkins
886ce5a351 * can use file for brush icon
* fixed memory leaks
* moved some of the brush icon code around
* the update of the icon after a change is more responsive
2010-07-20 13:42:27 +00:00
Brecht Van Lommel
a149410565 Fix #22910: displacement mapping not working with use alpha for image texture. 2010-07-20 13:32:42 +00:00
Peter Schlaile
2800c2f0f9 Fixed linking order for datafiles in scons (introduced with Rev 30531)
(blenkernel references the icon data files and had lower priority...)
2010-07-20 13:15:25 +00:00
Joshua Leung
beb98c9e0c Bugfix #22872: invert zoom direction doesn't work
The setting for this (IMO it should really be on by default, for reasons I've outlined recently) was not exposed at all. 

The setting that was shown was a new(?) option in 2.5 which dealt with Ctrl-MMB drag zoom.
2010-07-20 12:37:42 +00:00
Peter Schlaile
f9e9e90a02 == Sequencer ==
Cutting effect strips (esp multicam) didn't free endstill tstripdata.
Doesn't sound like much of a problem, but those can get big on large 
timelines. So every cut eating 3 MB of memory doesn't leave much room 
for editing decisions :)
2010-07-20 12:22:45 +00:00
Joshua Leung
8621c71c4c Bugfix #22917: Translating numerically doesn't allow animation
I've made most operators which change the current frame are now undoable. This has the following benefits:
- it brings these into line with simply changing the frame number directly
- as in this bug report, using the operator tweaking/redo capabilities was causing problems, as the lack of an undo for the frame change mean that changing the operator properties (in this case to do numeric input for transforms, which is a bit of a creative if inefficient use of the available tools) would cause the current frame to reset to the previous frame, making it seem impossible to tweak the operator settings

Notes:
- screen.frame_offset() operator has been left alone, since I expect that undo pushes on this one would be truly annoying while on the others it's probably ok/wanted. This is because with this operator, animators usually end up stepping through their animations vs one-off jumps/scrubbing-sessions
2010-07-20 11:54:17 +00:00
Jason Wilkins
b618a335f5 * Made the default sculpt icons an internal part of the executable
* Default icons can be selected from a menu
* Option to make a custom icon from a file is present but the UI is disabled because of a mysterious crash
* New startup.blend that has the appropriate icons selected
2010-07-20 11:32:30 +00:00
Joshua Leung
c547323f1c Bugfix: The infamous "bone properties/constraints disappearing after renaming bones" bug
This was simply caused by the lookup hash-table not being updated to be aware of the new name. Now the hashes are updated, so the name lookups (used for UI drawing among other things) works ok again after renaming bones.

This closes (open) reports: 22882, 21801
and the closed/duplicate reports: 22067, 22670, 22384, 22665
2010-07-20 11:17:47 +00:00
Brecht Van Lommel
b8ba541b90 Fix #22895: file browser now also filters .mts .m2v .m2t .avs as movies. 2010-07-20 11:06:26 +00:00
Campbell Barton
75410037fd - correct some spelling errors.
- remove FreeCamera struct (wasnt used)
- remove world color alpha values (not used anywhre).
2010-07-20 10:41:08 +00:00
Brecht Van Lommel
ef9357365c Workaround #20324: clouds (and other) textures bump mapping generates black
faces. Only happens with scons/msvc and SSE enabled for raytracing. Why this
happens exactly I don't know, I've tried to look for errors in the code but
couldn't find any, the perlin noise code somehow is generating NaN values,
but it is getting sane inputs. I suspect this is due to the render module
being compiled with /arch:SSE and other parts not. For now I've made only
the render_raytrace module compile with SSE, which seems to solve the problem,
but is mostly a workaround.
2010-07-20 10:22:49 +00:00
Jason Wilkins
99c7b0d5c5 Attempt #3 for sculpt startup.blend.c
Since the icons were renamed had to rename them in startup.blend

Issue: now the icon images will show up in image menus
2010-07-20 06:05:25 +00:00
Campbell Barton
d5d343a86b noise python module back from 2.4x, personal request from ant author Jimmy Haze
Changes:

/* 2.5 update
 * Noise.setRandomSeed --> seed_set
 * Noise.randuvec --> random_unit_vector
 * Noise.vNoise --> noise_vector
 * Noise.vTurbulence --> turbulence_vector
 * Noise.multiFractal --> multi_fractal
 * Noise.cellNoise --> cell
 * Noise.cellNoiseV --> cell_vector
 * Noise.vlNoise --> vl_vector
 * Noise.heteroTerrain --> hetero_terrain
 * Noise.hybridMFractal --> hybrid_multi_fractal
 * Noise.fBm --> fractal
 * Noise.ridgedMFractal --> ridged_multi_fractal
 *
 * Const's *
 * Noise.NoiseTypes --> types
 * Noise.DistanceMetrics --> distance_metrics
 */
2010-07-20 03:14:21 +00:00
Jason Wilkins
132a1f95c1 * Attempt #2 for new startup.blend
* This file has the default filenames for the sculpt icons

* Note: This does not contain code to make sure that icons get installed to 2.52/datafiles/brushicons so they can be loaded properly
2010-07-20 02:55:08 +00:00
Jason Wilkins
80e6323646 * Images for brush icons are now reloaded when they are needed from an external file
* First, try to load the file from the given filename.  This is either absolute or relative to the current .blend
* If file is found using the given filename directly then look for the file in the datafiles/brushicons directory (local, user, or system).

* Note: This commit does not update the .blend to reference the default icons
* Note: This commit does not make sure that the build system copies the default icons to the 2.52/datafiles/brushicons directory
2010-07-20 02:18:10 +00:00
Diego Borghetti
1033b60824 Fix #22911
[#22911] Node editors: pressing home doesn't zoom properly

Was using the incorrect value to calculate the new area
(also a typo in the ymax/xmax).

The bug can be found on the 2.4x version too, not really
sure how old is it.
2010-07-19 22:47:15 +00:00
Peter Schlaile
c7ce37471d == Sequencer ==
Bugfix: free_imbuf_seq() was closing IMB anim handles on nearly every 
change of RNA variables. This can be *very* slow, if you twiddle with 
parameters during playback. Especially multicam editing...

Now: we close IMB anim handles only on refresh_all() and filepath 
changes.
2010-07-19 20:01:18 +00:00
Campbell Barton
5095e97ea6 use the world horizon color when view3d render only option is set 2010-07-19 19:57:28 +00:00
Peter Schlaile
55d17f69d8 == Sequencer ==
Add keyboard shortcuts for multicam editing 
(hit 1-0 (regular, not keypad!) to cut to camera 1-10 during playback)
2010-07-19 17:47:58 +00:00
Peter Schlaile
523e8e4dc9 == FFMPEG ==
This is a fix for the following issues in ffmpeg movie reader:

* mpeg transport stream seeking (HDV) failed completely, since ffmpeg
  doesn't want to seek by timestamp (those aren't guaranteed to be 
  strictly monotonic within those file formats)

  We therefore seek by byte and use the bitrate in those cases. 
  This isn't a real fix,
  I will add a seperate index building process, soon, so that we can
  finally seek by timecode properly (optionally with "free run timecode"
  on consumer video camcorders, stay tuned :) )

* Recent versions of ffmpeg do set the ALPHA channel to 0xff properly,
  so we test the first pixel for proper ALPHA and then workaround
  optionally.
2010-07-19 16:27:31 +00:00
Xavier Thomas
ff83a98a07 Add a "copy" option to the save_as_mainfile operator. It saves the current
state but does not make the saved file active, so further save won't use 
this filepath.
2010-07-19 15:39:12 +00:00
Joshua Leung
f7298287b3 Bugger... msvc didn't bail out on these... 2010-07-19 11:47:46 +00:00
Joshua Leung
185036c3ed Bugfix #22906: Animation Player buttons broke on r30467
Reverting this commit. Seems that only the added parts were tested. I'll look at restoring a similar version of this in future.
2010-07-19 11:25:23 +00:00
Brecht Van Lommel
5108706176 Fix startup.blend, this was made from a regular blend file, not
the one saved when saving user preferences.

I've left out the brush icons. It's really not acceptable to have
these as image datablocks. Having these packed would also mean
increasing the size of every .blend file by 650 KB. They should be
loaded from the datafiles directory.
2010-07-19 10:45:15 +00:00
Sergey Sharybin
1f8f55b3cd - Reverted "Set FREE_WINDOWS when compiling with MinGW"
- Reverted own changes made to _stat function BLI_exists
- Use __MINGW32__ instead of FREE_WINDOWS in BLI_exists
- Removed recently added lib dependencies for mingw
2010-07-19 09:19:54 +00:00
Nathan Letwory
38860522bf Set FREE_WINDOWS when compiling with MinGW 2010-07-19 09:04:22 +00:00
Sergey Sharybin
266438b5e0 - Use correct paths for mstoolkit and crossmingw tools in sconscript
- Use _stat64i32 instead of _stat in BLI_exist
  Needed for correct compilation by mingw, no sense for msvc
  (_stat is equivalent to _stat64i32 in Visual C++ 2005, and later i suppose)
- Added library msvcr90 for mingw to solve linking error to _stat64i32
2010-07-19 09:02:27 +00:00
Nathan Letwory
c28c33d19d Fix for #22861 Won't compile for MinGW sicne r30349 2010-07-19 08:55:06 +00:00
Jason Wilkins
acf3c4bb02 * decrementing image_icon ref count from wrong place 2010-07-19 07:29:52 +00:00
Jason Wilkins
87ff29f932 * new factory defaults include Eclectiel's sculpt icons and new default brush settings for the new GSoC sculpt tools 2010-07-19 06:56:08 +00:00
Campbell Barton
bdc305b55b stupid mistake, was overwriting all strip saturation on load. 2010-07-18 15:19:50 +00:00
Andrea Weikert
5f1246f62a Small feature for the Durian guys:
Playback Jog Keys:
ALT+LEFTARROW: play backward (hit again for double speed)
ALT+RIGHTARROW: play fordward (hit again for double speed)
ALT+DOWNARROW: start/stop animation
2010-07-18 14:46:52 +00:00
Campbell Barton
0a2e485926 move the thumbnailer to bin/ 2010-07-18 11:46:25 +00:00
Joerg Mueller
82e7d6d332 Merging revision 30461 from my GSoC branch, log: Fix for msvc which not has the round function. 2010-07-18 08:19:44 +00:00
Andrea Weikert
93915f1120 fix for crash when terminating thumbnail threads 2010-07-18 08:07:38 +00:00
Dalai Felinto
7aebd56153 fixing small ambiguity in the logic brick link code
(not sure it booms in any compiler, but it doesn't hurt to make it right)
2010-07-18 01:51:14 +00:00
Campbell Barton
40078f22b2 CMake on unix
- install manpage into the correct location defined: http://www.pathname.com/fhs/2.2/fhs-4.11.html
- dont copy pyc files from release/scripts
2010-07-17 21:11:04 +00:00
Brecht Van Lommel
2b408cab4e Fix for uninitialized results from hsv_to_rgb, when hue is out of range 0..1. 2010-07-17 21:01:00 +00:00
Campbell Barton
fd31436897 spelling correction: alredy --> already 2010-07-17 18:08:14 +00:00
Campbell Barton
e25393a098 reverting commit r28693. Making backspace a 3rd delete key.
We already have 2 keys for delete, no need to add a 3rd, better use backspace only when it makes sense or allow users to hook it up to something.
2010-07-17 18:02:10 +00:00
Campbell Barton
1bb0c84236 - added text3d.body_format to be able to set bold/italic/smallcaps etc on text.
- the length of a new text object wasnt set on creation.
- tex3d and controllers rna name was being set to its body (rather then ID name)
- remove reference to wave objects which are very old and not used anymore.
2010-07-17 17:50:20 +00:00
Campbell Barton
a3d822f857 Rendering from the sequencer in background mode was printing frame 0 for every frame 2010-07-17 17:36:53 +00:00
Brecht Van Lommel
21cb1f82db Revert part of commit 29079, cleanup of particle path drawing logic
This commit and other commits attempting to fix it broke various things. The
main thing that changed was that instead of computing children/paths in
advance as part of particle_system_update, this was moved to do it just before
drawing or rendering. I've changed back that behavior and tried to keep the
other fixes in the commit.

When the new particle system was just committed, it also worked this way but
gave various problems, and I had to remove that behavior to get things working
stable. Basically it meant that you could get have a path cache that was
outdated in various situations, and it doesn't fit well with dependency graph
evaluation order.

This fixes:
#22823: Children Particle Rendering is broken
#22733: Particle objects not displayed
#22888: SigSegV when rending hair particles
#22820: Another SigSegV when undo adding hairs in particel edit mode
Some particle setups in dupligroups.

The three bugs that the original commit fixed are now also still working in
my tests:
#21316: Hair weight drawing is wrong
#21923: Consistent Crash When Rendering Particle Scene.
#21950: Path rendering option for particles causes crash
2010-07-17 17:07:50 +00:00
Campbell Barton
02ef91a619 [#22876] Add new scene, stacker ".00" bug
finding duplicates is a bit faster now too since it doesnt split the name and number before comparing ID's prefix.
2010-07-17 16:17:30 +00:00
Brecht Van Lommel
e4756f4c33 2.5: installation paths, local directories (in the same folder as executable)
are now considered system rather than user directories, as you would expect
these to override any system directory for local installations.
2010-07-17 15:42:01 +00:00
Joerg Mueller
fd982af447 Merging revision 30434 from my GSoC branch, log: Fixed sound wave display bug for sounds that are not full length. 2010-07-17 13:41:22 +00:00
Jason Wilkins
06193537ed * Applied patch from nicholasbishop that refactors calculation of the grab delta into a function with less duplication 2010-07-17 13:31:33 +00:00
Campbell Barton
22c6b7d174 PNG Compression can now be set, writing uncompressed PNG's is significantly faster for high resolution images - 2k. 2010-07-17 13:29:55 +00:00
Joshua Leung
30b712ed68 48Hr Bugfix: Paste pose not correctly updating
Removed some antiquated cruft that used to work around the old anim-system.
2010-07-17 13:18:11 +00:00