Fix for a nasty glicth found by Irie Shinsuke in Freestyle branch.

Headerless panels are not supposed to be closed ever. But if user saves a blend with a stardard panel closed, then dev decides to make this panel headerless, when user open again its blend, the panel is closed and has no more header, so it becomes invisible!

This commit simply checks, at draw time, that a headerless panel is never closed (and repoen it if necessary)!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54141 954f8c5b-7b00-dc11-b283-0030488c597c
add mathutils function to intersect 2 circles. Converted to C from a python script by Alex Fraser.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54142 954f8c5b-7b00-dc11-b283-0030488c597c
rigidbody: Don't show dialog for "Connect" operator

Use redo last panel to change settings now.
This is more in line with how the rest of blender operates.

Also fix tootip

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54143 954f8c5b-7b00-dc11-b283-0030488c597c
use more conventional names in rigid body script.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54144 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for RNA FUNC_REGISTER/FUNC_REGISTER_OPTIONAL flags: The test in bpy validation of classes actually always passed for mandatory functions. This only worked since they all use fallback default implementations internally.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54145 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for errors caused by fixing RNA function register flags. Default UIList class now has a dummy draw_item callback. Panel draw_header is now optional (most panel classes don't define it).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54146 954f8c5b-7b00-dc11-b283-0030488c597c
fix for rigid body assuming active object would be selected, also don't check length of selected objects in poll function (getting and throwing away object selection array on every redraw is no good).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54147 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for the is_registered_optional property of RNA functions, now only returns true for actually optional functions.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54148 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#34018] Delete Edge Loop undo works not als expected.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54149 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for wrong icons buffer initialization happens for cards
without NPOT support. Was wrong stride used for memcpy leading
to wrong memory writes in def_internal_icon.

It's a regression since matcap commit.

Should fix the following reports:
- #33993: Crash on Blender startup (Vista x32)
- #33996: Latest build crashes on win xp

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54150 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34004: crash when canceling ongoing render with scene strip

Issue was caused by recursive call of RE_BlenderFrame. Solved by
reshuffling image pool init/free in do_render_all_options.

Should be harmless, but doublecheck on this is welcome.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54151 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for RNA function flag conflict: FUNC_USE_REPORTS was using same bits as FUNC_REGISTER. Previously errors resulting from this could go unnoticed because of broken FUNC_REGISTER test (all functions considered optional). Watch this in future ...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54152 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: preview rendering support for world/material/lamp.

Patch by Sergey, .blend by Thomas and some further tweaks by me.

Still to solve later: allow external engines to specify own preview .blend, for
now the code here is doing too much magic hacking on the preview scene still.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54153 954f8c5b-7b00-dc11-b283-0030488c597c
Scons:
* Fix for new cycles_preview.blend

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54154 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#34023] r54146 breaks name-display of default "UI_UL_list"

draw_item *is* optional (it then uses default C function), even though there is not much sense to register a class without it, except for our default UI_UL_list!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54155 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles Preview Blend:
* Added UV Mapping for objects, so Image textures will work.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54156 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles Preview: Rotated Suzanne a bit for better angle. Raised the intensity of the mesh light, and moved the mesh/lamp to also be in the layer of World Sphere preview (was black previously, since it had no lamps)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54157 954f8c5b-7b00-dc11-b283-0030488c597c
Info Editor: Adding Save Screenshot option to the Window menu, was only available through search or shortcut (CTRL+F3)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54158 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#34019] Limit Constraints still affected transforms when turned off

Limit Constraints (i.e. Limit Location/Rotation/Scale/Distance) with 'For
Transform' option enabled would still be applied when transforming objects even
when they were turned off using the eye icon in the constraint panel headers.
The "off" flag was never added to the checks for muted or disabled constraints
to be skipped here.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54159 954f8c5b-7b00-dc11-b283-0030488c597c
Better tooltips for the Full Screen option on Save Screenshot/Screencast operators.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54160 954f8c5b-7b00-dc11-b283-0030488c597c